mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-19 15:18:55 +02: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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user