mapper: re-add character set conversion in map_uri_fs()

This commit is contained in:
Stepan Pologov 2009-01-08 17:29:08 +01:00 committed by Max Kellermann
parent 628866a065
commit 7a9a1e3e31

View File

@ -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);
}