diff options
author | Konstantin Sobolev <konstantin.sobolev@gmail.com> | 2008-11-20 17:48:11 +0100 |
---|---|---|
committer | Max Kellermann <mk@cm4all.com> | 2008-11-20 17:48:11 +0100 |
commit | ddab531b4a1a11660e9db17df5e1accdf7da6f01 (patch) | |
tree | e68665fcb0da0cefbfa778676784092f0dc6ac3c /src/path.c | |
parent | 1f50146e29de5628540146fbbd9421b17dc8543d (diff) | |
download | mpd-ddab531b4a1a11660e9db17df5e1accdf7da6f01.tar.gz mpd-ddab531b4a1a11660e9db17df5e1accdf7da6f01.tar.xz mpd-ddab531b4a1a11660e9db17df5e1accdf7da6f01.zip |
path: fix g_convert() argument order
g_convert() wants the destination character set first. This was mixed
up.
Diffstat (limited to '')
-rw-r--r-- | src/path.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/path.c b/src/path.c index 6e7ccae14..ff7f6ffe5 100644 --- a/src/path.c +++ b/src/path.c @@ -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 */ |