diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/charset.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/charset.c b/src/charset.c index 095817d15..ccfac0ef8 100644 --- a/src/charset.c +++ b/src/charset.c @@ -71,7 +71,7 @@ utf8_to_locale(const char *utf8str) if (noconvert) return g_strdup(utf8str); - str = g_convert_with_fallback(utf8str, strlen(utf8str), + str = g_convert_with_fallback(utf8str, -1, charset, "utf-8", NULL, NULL, NULL, &error); @@ -98,7 +98,7 @@ locale_to_utf8(const char *localestr) if (noconvert) return g_strdup(localestr); - str = g_convert_with_fallback(localestr, strlen(localestr), + str = g_convert_with_fallback(localestr, -1, "utf-8", charset, NULL, NULL, NULL, &error); |