aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/song.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/song.c b/src/song.c
index 1a3a78682..4dee27c9c 100644
--- a/src/song.c
+++ b/src/song.c
@@ -294,8 +294,10 @@ int updateSongInfo(Song * song)
InputPlugin *plugin;
unsigned int next = 0;
char path_max_tmp[MPD_PATH_MAX];
- char *abs_path = rmp2amp_r(path_max_tmp,
- get_song_url(path_max_tmp, song));
+ char abs_path[MPD_PATH_MAX];
+
+ utf8_to_fs_charset(abs_path, get_song_url(path_max_tmp, song));
+ rmp2amp_r(abs_path, abs_path);
if (song->tag)
freeMpdTag(song->tag);