diff options
author | Stepan Pologov <sisoft@bk.ru> | 2009-01-08 17:29:08 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-08 17:29:08 +0100 |
commit | 7a9a1e3e3184b12e7393f8718154acc89865cf19 (patch) | |
tree | 3cd867b2790585028ff316a971ffd5b6ef257e78 /src | |
parent | 628866a065535c43a1a0b45fd66ec5e186cb33ea (diff) | |
download | mpd-7a9a1e3e3184b12e7393f8718154acc89865cf19.tar.gz mpd-7a9a1e3e3184b12e7393f8718154acc89865cf19.tar.xz mpd-7a9a1e3e3184b12e7393f8718154acc89865cf19.zip |
mapper: re-add character set conversion in map_uri_fs()
Diffstat (limited to 'src')
-rw-r--r-- | src/mapper.c | 6 |
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); } |