From d3c93c1c77eaa8d4d3def73a04cba9f5bfa9c5ef Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 28 Apr 2009 09:32:38 +0200 Subject: tag: use g_ascii_strcasecmp() instead of strcasecmp() strcasecmp() is locale dependent, making it a bad choice for internal string comparisons. --- src/tag_ape.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tag_ape.c') diff --git a/src/tag_ape.c b/src/tag_ape.c index 459f3450..d1249fcb 100644 --- a/src/tag_ape.c +++ b/src/tag_ape.c @@ -126,7 +126,7 @@ tag_ape_load(const char *file) /* we only care about utf-8 text tags */ if (!(flags & (0x3 << 1))) { for (i = 0; i < 7; i++) { - if (strcasecmp(key, apeItems[i]) == 0) { + if (g_ascii_strcasecmp(key, apeItems[i]) == 0) { if (!ret) ret = tag_new(); tag_add_item_n(ret, tagItems[i], -- cgit v1.2.3