From f3e1ba1c267742fedaeb8b3b082a509c4f925267 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Thu, 3 Feb 2011 07:08:37 +0100 Subject: [PATCH] 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. --- src/ncmpcpp.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ncmpcpp.cpp b/src/ncmpcpp.cpp index 2eba855b..6e4b1279 100644 --- a/src/ncmpcpp.cpp +++ b/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()) {