From e36f03f3395492e8cd9af1c2f16d606c4fca5a25 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Thu, 3 Feb 2011 07:04:40 +0100 Subject: [PATCH] tag editor: do not convert filenames back to utf8 while reading files using taglib it was assumed that filesystem encoding is utf8, but that's wrong. now it's assumed that it matches system encoding. --- src/tag_editor.cpp | 1 - src/tiny_tag_editor.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/src/tag_editor.cpp b/src/tag_editor.cpp index 03571e27..74d6ff5c 100644 --- a/src/tag_editor.cpp +++ b/src/tag_editor.cpp @@ -974,7 +974,6 @@ bool TagEditor::WriteTags(MPD::Song &s) if (file_is_from_db) path_to_file += Config.mpd_music_dir; path_to_file += s.GetFile(); - locale_to_utf(path_to_file); TagLib::FileRef f(path_to_file.c_str()); if (!f.isNull()) { diff --git a/src/tiny_tag_editor.cpp b/src/tiny_tag_editor.cpp index 41c6dfb1..c4d53f19 100644 --- a/src/tiny_tag_editor.cpp +++ b/src/tiny_tag_editor.cpp @@ -182,7 +182,6 @@ bool TinyTagEditor::GetTags() if (s.isFromDB()) path_to_file += Config.mpd_music_dir; path_to_file += s.GetFile(); - locale_to_utf(path_to_file); TagLib::FileRef f(path_to_file.c_str()); if (f.isNull())