core/string: Use g_utf8_collate() for string comparisons
This function compares strings using "linguistically correct rules for the current locale". Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
parent
6b25987785
commit
461cbdb9c3
|
@ -85,5 +85,5 @@ int string_compare(const gchar *lhs, const gchar *rhs)
|
|||
}
|
||||
if (strlen(rhs) == 0)
|
||||
return -1;
|
||||
return g_strcmp0(lhs, rhs);
|
||||
return g_utf8_collate(lhs, rhs);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue