From 461cbdb9c36d4f885b5c99736e125beedbc0516e Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Fri, 16 Oct 2015 13:39:44 -0400 Subject: [PATCH] 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 --- core/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/string.c b/core/string.c index 407ffcfb..5b7c22e7 100644 --- a/core/string.c +++ b/core/string.c @@ -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); }