--now-playing should return string converted to current locale

This commit is contained in:
Andrzej Rybczak
2009-09-20 03:30:35 +02:00
parent 310ea04f3e
commit 4d99d11cfe

View File

@@ -152,7 +152,7 @@ void ParseArgv(int argc, char **argv)
now_playing_format += "}";
MPD::Song::ValidateFormat("now-playing format", now_playing_format);
}
std::cout << Mpd.GetCurrentSong().toString(now_playing_format) << "\n";
std::cout << utf_to_locale_cpy(Mpd.GetCurrentSong().toString(now_playing_format)) << "\n";
}
exit(0);
}