2003-03-a30 Matthias Clasen <maclas@gmx.de>

* glib/gutf8.c (UNICODE_VALID): Update to Unicode 3.1 and optimize
	a bit.  (#107427, Noah Lewitt)
This commit is contained in:
Matthias Clasen 2003-03-30 21:51:30 +00:00
parent 93681235dd
commit cb0e4de11c
7 changed files with 21 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2003-03-30 Matthias Clasen <maclas@gmx.de> 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. * glib/libcharset/config.charset: Add cp1251 support for Solaris.
(#104738, Hidetoshi Tajima) (#104738, Hidetoshi Tajima)

View File

@ -1,5 +1,8 @@
2003-03-30 Matthias Clasen <maclas@gmx.de> 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. * glib/libcharset/config.charset: Add cp1251 support for Solaris.
(#104738, Hidetoshi Tajima) (#104738, Hidetoshi Tajima)

View File

@ -1,5 +1,8 @@
2003-03-30 Matthias Clasen <maclas@gmx.de> 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. * glib/libcharset/config.charset: Add cp1251 support for Solaris.
(#104738, Hidetoshi Tajima) (#104738, Hidetoshi Tajima)

View File

@ -1,5 +1,8 @@
2003-03-30 Matthias Clasen <maclas@gmx.de> 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. * glib/libcharset/config.charset: Add cp1251 support for Solaris.
(#104738, Hidetoshi Tajima) (#104738, Hidetoshi Tajima)

View File

@ -1,5 +1,8 @@
2003-03-30 Matthias Clasen <maclas@gmx.de> 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. * glib/libcharset/config.charset: Add cp1251 support for Solaris.
(#104738, Hidetoshi Tajima) (#104738, Hidetoshi Tajima)

View File

@ -1,5 +1,8 @@
2003-03-30 Matthias Clasen <maclas@gmx.de> 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. * glib/libcharset/config.charset: Add cp1251 support for Solaris.
(#104738, Hidetoshi Tajima) (#104738, Hidetoshi Tajima)

View File

@ -97,8 +97,9 @@
#define UNICODE_VALID(Char) \ #define UNICODE_VALID(Char) \
((Char) < 0x110000 && \ ((Char) < 0x110000 && \
((Char) < 0xD800 || (Char) >= 0xE000) && \ (((Char) & 0xFFFFF800) != 0xD800) && \
(Char) != 0xFFFE && (Char) != 0xFFFF) ((Char) < 0xFDD0 || (Char) > 0xFDEF) && \
((Char) & 0xFFFF) != 0xFFFF)
static const gchar utf8_skip_data[256] = { static const gchar utf8_skip_data[256] = {