From 0fd14b1a56085d59fcb2619dd5071d854997e4d7 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 21 Nov 2011 00:27:25 -0500 Subject: [PATCH] Fix a case conversion bug For titlecase chars without uppercase variant, we were returning 0, contrary to the docs. --- glib/guniprop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/guniprop.c b/glib/guniprop.c index 2879a80..c099256 100644 --- a/glib/guniprop.c +++ b/glib/guniprop.c @@ -603,7 +603,7 @@ g_unichar_toupper (gunichar c) for (i = 0; i < G_N_ELEMENTS (title_table); ++i) { if (title_table[i][0] == c) - return title_table[i][1]; + return title_table[i][1] ? title_table[i][1] : c; } } return c; -- 2.7.4