mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 06:26:15 +01:00
Fix a case conversion bug
For titlecase chars without uppercase variant, we were returning 0, contrary to the docs.
This commit is contained in:
parent
5197870665
commit
0fd14b1a56
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user