aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mapper.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mapper.c b/src/mapper.c
index 82551d2b2..bbcc220e3 100644
--- a/src/mapper.c
+++ b/src/mapper.c
@@ -91,9 +91,15 @@ void mapper_finish(void)
char *
map_uri_fs(const char *uri)
{
+ char buffer[MPD_PATH_MAX];
+
assert(uri != NULL);
assert(*uri != '/');
+ uri = utf8_to_fs_charset(buffer, uri);
+ if (uri == NULL)
+ return NULL;
+
return g_build_filename(music_dir, uri, NULL);
}