ncmpcpp: convert input path to utf8 before calling 'add' command
this fixes the problem with adding files that contain non-ascii characters while using different charset encoding than utf8.
This commit is contained in:
@@ -1256,6 +1256,7 @@ int main(int argc, char *argv[])
|
|||||||
LockStatusbar();
|
LockStatusbar();
|
||||||
Statusbar() << (myScreen == myPlaylistEditor ? "Add to playlist: " : "Add: ");
|
Statusbar() << (myScreen == myPlaylistEditor ? "Add to playlist: " : "Add: ");
|
||||||
std::string path = wFooter->GetString();
|
std::string path = wFooter->GetString();
|
||||||
|
locale_to_utf(path);
|
||||||
UnlockStatusbar();
|
UnlockStatusbar();
|
||||||
if (!path.empty())
|
if (!path.empty())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user