2003-03-a30 Matthias Clasen <maclas@gmx.de>
authorMatthias Clasen <matthiasc@src.gnome.org>
Sun, 30 Mar 2003 21:51:30 +0000 (21:51 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sun, 30 Mar 2003 21:51:30 +0000 (21:51 +0000)
* glib/gutf8.c (UNICODE_VALID): Update to Unicode 3.1 and optimize
a bit.  (#107427, Noah Lewitt)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gutf8.c

index fc2293d..93e1397 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2003-03-30  Matthias Clasen  <maclas@gmx.de>
 
+       * glib/gutf8.c (UNICODE_VALID): Update to Unicode 3.1 and optimize
+       a bit.  (#107427, Noah Lewitt)
+
        * glib/libcharset/config.charset: Add cp1251 support for Solaris.
        (#104738, Hidetoshi Tajima)
 
index fc2293d..93e1397 100644 (file)
@@ -1,5 +1,8 @@
 2003-03-30  Matthias Clasen  <maclas@gmx.de>
 
+       * glib/gutf8.c (UNICODE_VALID): Update to Unicode 3.1 and optimize
+       a bit.  (#107427, Noah Lewitt)
+
        * glib/libcharset/config.charset: Add cp1251 support for Solaris.
        (#104738, Hidetoshi Tajima)
 
index fc2293d..93e1397 100644 (file)
@@ -1,5 +1,8 @@
 2003-03-30  Matthias Clasen  <maclas@gmx.de>
 
+       * glib/gutf8.c (UNICODE_VALID): Update to Unicode 3.1 and optimize
+       a bit.  (#107427, Noah Lewitt)
+
        * glib/libcharset/config.charset: Add cp1251 support for Solaris.
        (#104738, Hidetoshi Tajima)
 
index fc2293d..93e1397 100644 (file)
@@ -1,5 +1,8 @@
 2003-03-30  Matthias Clasen  <maclas@gmx.de>
 
+       * glib/gutf8.c (UNICODE_VALID): Update to Unicode 3.1 and optimize
+       a bit.  (#107427, Noah Lewitt)
+
        * glib/libcharset/config.charset: Add cp1251 support for Solaris.
        (#104738, Hidetoshi Tajima)
 
index fc2293d..93e1397 100644 (file)
@@ -1,5 +1,8 @@
 2003-03-30  Matthias Clasen  <maclas@gmx.de>
 
+       * glib/gutf8.c (UNICODE_VALID): Update to Unicode 3.1 and optimize
+       a bit.  (#107427, Noah Lewitt)
+
        * glib/libcharset/config.charset: Add cp1251 support for Solaris.
        (#104738, Hidetoshi Tajima)
 
index fc2293d..93e1397 100644 (file)
@@ -1,5 +1,8 @@
 2003-03-30  Matthias Clasen  <maclas@gmx.de>
 
+       * glib/gutf8.c (UNICODE_VALID): Update to Unicode 3.1 and optimize
+       a bit.  (#107427, Noah Lewitt)
+
        * glib/libcharset/config.charset: Add cp1251 support for Solaris.
        (#104738, Hidetoshi Tajima)
 
index 6b01a09..9371bf1 100644 (file)
@@ -97,8 +97,9 @@
 
 #define UNICODE_VALID(Char)                   \
     ((Char) < 0x110000 &&                     \
-     ((Char) < 0xD800 || (Char) >= 0xE000) && \
-     (Char) != 0xFFFE && (Char) != 0xFFFF)
+     (((Char) & 0xFFFFF800) != 0xD800) &&     \
+     ((Char) < 0xFDD0 || (Char) > 0xFDEF) &&  \
+     ((Char) & 0xFFFF) != 0xFFFF)
    
      
 static const gchar utf8_skip_data[256] = {