unicode: Switch compose_second_single to gunichar
authorChristian Persch <chpe@gnome.org>
Thu, 19 Jun 2014 17:29:16 +0000 (19:29 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 28 Jun 2014 16:49:07 +0000 (12:49 -0400)
This will be required for the update to unicode 7.0.0.

glib/gen-unicode-tables.pl

index 46c4b27..ebcb4a4 100755 (executable)
@@ -1323,12 +1323,9 @@ sub output_composition_table
                  
     # Output second singletons
 
-    print OUT "static const guint16 compose_second_single[][2] = {\n";
+    print OUT "static const gunichar compose_second_single[][2] = {\n";
     $i = 0;                                 
     for $record (@second_singletons) {
-        if ($record->[1] > 0xFFFF or $record->[2] > 0xFFFF) {
-            die "time to switch compose_second_single to gunichar";
-        }
        print OUT ",\n" if $i++ > 0;
        printf OUT " { %#06x, %#06x }", $record->[1], $record->[2];
     }