[glib/wip/unicode-7.0: 3/4] unicode: Switch compose_second_single to gunichar



commit d18109537712ce4a63d4d085786fa3c06cdb739d
Author: Christian Persch <chpe gnome org>
Date:   Thu Jun 19 19:29:16 2014 +0200

    unicode: Switch compose_second_single to gunichar
    
    This will be required for the update to unicode 7.0.0.

 glib/gen-unicode-tables.pl |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/glib/gen-unicode-tables.pl b/glib/gen-unicode-tables.pl
index 46c4b27..ebcb4a4 100755
--- a/glib/gen-unicode-tables.pl
+++ b/glib/gen-unicode-tables.pl
@@ -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];
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]