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)
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)
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)
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)
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)
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)
#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] = {