]> git.eshelyaron.com Git - emacs.git/commitdiff
(END): Initialize lastgb and gbtable[lastgb] correctly.
authorKenichi Handa <handa@m17n.org>
Wed, 8 May 2002 23:32:27 +0000 (23:32 +0000)
committerKenichi Handa <handa@m17n.org>
Wed, 8 May 2002 23:32:27 +0000 (23:32 +0000)
etc/charsets/gb18030.awk

index df56a8b2ca1cf8d95ee777031a37d53fca2be13c..b09571fca62bc51c113aa413126f19b32c38e493 100644 (file)
@@ -69,8 +69,10 @@ function printline(from, to) {
 
 END {
   lastgb = 0;
-  surrogate_min = decode_hex("D800")
-  surrogate_max = decode_hex("DFFF")
+  surrogate_min = decode_hex("D800");
+  surrogate_max = decode_hex("DFFF");
+  lastgb = unitable[128];
+  gbtable[lastgb] = 128;
   for (i = 129; i < 65536; i++)
     {
       if (unitable[i] == 0 && (i < surrogate_min || i > surrogate_max))
@@ -86,7 +88,6 @@ END {
        }
     }
 
-  print "You blew it again!" > "/dev/stderr"
   fromgb = lastgb = unitable[128];
   for (i = 129; i < 65536; i++)
     {