From e9a316866dbdc061b2ae56b4f67f2bc76e9f3f11 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 4 Jul 2008 18:05:13 +0000 Subject: [PATCH] =?utf8?q?Bug=20541507=20=E2=80=93=20Ambiguous=20descripti?= =?utf8?q?on=20of=20assigned=20characters=20in=20the=20Glib?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2008-07-04 Behdad Esfahbod Bug 541507 – Ambiguous description of assigned characters in the Glib Unicode Manipulation reference * glib/guniprop.c (g_unichar_isgraph): Return true for PrivateUse too. (g_unichar_isprint): Return true for PrivateUse too. (g_unichar_isdefined): Return false for Surrogate. svn path=/trunk/; revision=7161 --- ChangeLog | 10 ++++++++++ glib/guniprop.c | 11 ++++++----- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index ce7da12..f851bd4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2008-07-04 Behdad Esfahbod + + Bug 541507 – Ambiguous description of assigned characters in the Glib + Unicode Manipulation reference + + * glib/guniprop.c + (g_unichar_isgraph): Return true for PrivateUse too. + (g_unichar_isprint): Return true for PrivateUse too. + (g_unichar_isdefined): Return false for Surrogate. + 2008-07-04 Michael Natterer Bug 541208 – Functions to easily install and use signals without diff --git a/glib/guniprop.c b/glib/guniprop.c index ae194c3..57928e5 100644 --- a/glib/guniprop.c +++ b/glib/guniprop.c @@ -175,10 +175,9 @@ g_unichar_isgraph (gunichar c) OR (G_UNICODE_CONTROL, OR (G_UNICODE_FORMAT, OR (G_UNICODE_UNASSIGNED, - OR (G_UNICODE_PRIVATE_USE, OR (G_UNICODE_SURROGATE, OR (G_UNICODE_SPACE_SEPARATOR, - 0))))))); + 0)))))); } /** @@ -216,9 +215,8 @@ g_unichar_isprint (gunichar c) OR (G_UNICODE_CONTROL, OR (G_UNICODE_FORMAT, OR (G_UNICODE_UNASSIGNED, - OR (G_UNICODE_PRIVATE_USE, OR (G_UNICODE_SURROGATE, - 0)))))); + 0))))); } /** @@ -377,7 +375,10 @@ g_unichar_isxdigit (gunichar c) gboolean g_unichar_isdefined (gunichar c) { - return TYPE (c) != G_UNICODE_UNASSIGNED; + return !IS (TYPE(c), + OR (G_UNICODE_UNASSIGNED, + OR (G_UNICODE_SURROGATE, + 0))); } /** -- 2.7.4