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.
master
Andrzej Rybczak 15 years ago
parent e36f03f339
commit f3e1ba1c26
  1. 1
      src/ncmpcpp.cpp

@ -1256,6 +1256,7 @@ int main(int argc, char *argv[])
LockStatusbar();
Statusbar() << (myScreen == myPlaylistEditor ? "Add to playlist: " : "Add: ");
std::string path = wFooter->GetString();
locale_to_utf(path);
UnlockStatusbar();
if (!path.empty())
{

Loading…
Cancel
Save