projects
/
geeqie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d80efe4
)
Fix a major bug in utf8_compare(): when case_sensitive is true, s1_t and s2_t were...
author
Laurent Monin
<geeqie@norz.org>
Mon, 26 Jan 2009 08:30:30 +0000
(08:30 +0000)
committer
Laurent Monin
<geeqie@norz.org>
Mon, 26 Jan 2009 08:30:30 +0000
(08:30 +0000)
src/misc.c
patch
|
blob
|
history
diff --git
a/src/misc.c
b/src/misc.c
index
e132bc1
..
0f69053
100644
(file)
--- a/
src/misc.c
+++ b/
src/misc.c
@@
-44,6
+44,11
@@
gint utf8_compare(const gchar *s1, const gchar *s2, gboolean case_sensitive)
s1_t = g_utf8_casefold(s1, -1);
s2_t = g_utf8_casefold(s2, -1);
}
+ else
+ {
+ s1_t = (gchar *) s1;
+ s2_t = (gchar *) s2;
+ }
s1_key = g_utf8_collate_key(s1_t, -1);
s2_key = g_utf8_collate_key(s2_t, -1);