Fix a case conversion bug

For titlecase chars without uppercase variant, we were returning
0, contrary to the docs.
This commit is contained in:
Matthias Clasen
2011-11-21 00:27:25 -05:00
parent 5197870665
commit 0fd14b1a56

View File

@@ -603,7 +603,7 @@ g_unichar_toupper (gunichar c)
for (i = 0; i < G_N_ELEMENTS (title_table); ++i) for (i = 0; i < G_N_ELEMENTS (title_table); ++i)
{ {
if (title_table[i][0] == c) if (title_table[i][0] == c)
return title_table[i][1]; return title_table[i][1] ? title_table[i][1] : c;
} }
} }
return c; return c;