aboutsummaryrefslogtreecommitdiffstats
path: root/src/mapper.c
diff options
context:
space:
mode:
authorStepan Pologov <sisoft@bk.ru>2009-01-08 17:29:08 +0100
committerMax Kellermann <max@duempel.org>2009-01-08 17:29:08 +0100
commit7a9a1e3e3184b12e7393f8718154acc89865cf19 (patch)
tree3cd867b2790585028ff316a971ffd5b6ef257e78 /src/mapper.c
parent628866a065535c43a1a0b45fd66ec5e186cb33ea (diff)
downloadmpd-7a9a1e3e3184b12e7393f8718154acc89865cf19.tar.gz
mpd-7a9a1e3e3184b12e7393f8718154acc89865cf19.tar.xz
mpd-7a9a1e3e3184b12e7393f8718154acc89865cf19.zip
mapper: re-add character set conversion in map_uri_fs()
Diffstat (limited to '')
-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);
}