aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-08-13 23:37:50 +0200
committerMax Kellermann <max@duempel.org>2012-08-14 02:28:04 +0200
commit1ae89728593fce4a40882fa133b9db269015da8f (patch)
treeb4842a26396a6e40e75d233dfdd9abc31b54bccf /src/command.c
parentadcd2c8eacd74aeb072b806a3c36922ca2ad753d (diff)
downloadmpd-1ae89728593fce4a40882fa133b9db269015da8f.tar.gz
mpd-1ae89728593fce4a40882fa133b9db269015da8f.tar.xz
mpd-1ae89728593fce4a40882fa133b9db269015da8f.zip
mapper: fix non-UTF8 music directory name
Duplicate the music_dir variable: one encoded in UTF-8, and another one using the configured filesystem character set. This fixes an ancient MPD bug.
Diffstat (limited to '')
-rw-r--r--src/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index 86d216a75..329b7d51a 100644
--- a/src/command.c
+++ b/src/command.c
@@ -1544,7 +1544,7 @@ handle_config(struct client *client,
return COMMAND_RETURN_ERROR;
}
- const char *path = mapper_get_music_directory();
+ const char *path = mapper_get_music_directory_utf8();
if (path != NULL)
client_printf(client, "music_directory: %s\n", path);