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:
Anna Schumaker 2015-10-16 13:39:44 -04:00
parent 6b25987785
commit 461cbdb9c3
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}