projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5197870
)
Fix a case conversion bug
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 21 Nov 2011 05:27:25 +0000
(
00:27
-0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 21 Nov 2011 05:28:41 +0000
(
00:28
-0500)
For titlecase chars without uppercase variant, we were returning
0, contrary to the docs.
glib/guniprop.c
patch
|
blob
|
history
diff --git
a/glib/guniprop.c
b/glib/guniprop.c
index
2879a80
..
c099256
100644
(file)
--- 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;