Commit ddab531b authored by Konstantin Sobolev's avatar Konstantin Sobolev Committed by Max Kellermann

path: fix g_convert() argument order

g_convert() wants the destination character set first. This was mixed up.
parent 1f50146e
......@@ -33,7 +33,7 @@ char *fs_charset_to_utf8(char *dst, const char *str)
GError *error = NULL;
p = g_convert(str, -1,
fs_charset, "utf-8",
"utf-8", fs_charset,
NULL, NULL, &error);
if (p == NULL) {
/* no fallback */
......@@ -52,7 +52,7 @@ char *utf8_to_fs_charset(char *dst, const char *str)
GError *error = NULL;
p = g_convert(str, -1,
"utf-8", fs_charset,
fs_charset, "utf-8",
NULL, NULL, &error);
if (p == NULL) {
/* fall back to UTF-8 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment