mapper: re-add character set conversion in map_uri_fs()
This commit is contained in:
parent
628866a065
commit
7a9a1e3e31
@ -91,9 +91,15 @@ void mapper_finish(void)
|
|||||||
char *
|
char *
|
||||||
map_uri_fs(const char *uri)
|
map_uri_fs(const char *uri)
|
||||||
{
|
{
|
||||||
|
char buffer[MPD_PATH_MAX];
|
||||||
|
|
||||||
assert(uri != NULL);
|
assert(uri != NULL);
|
||||||
assert(*uri != '/');
|
assert(*uri != '/');
|
||||||
|
|
||||||
|
uri = utf8_to_fs_charset(buffer, uri);
|
||||||
|
if (uri == NULL)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
return g_build_filename(music_dir, uri, NULL);
|
return g_build_filename(music_dir, uri, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user