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.
This commit is contained in:
Andrzej Rybczak committed 2011-02-03 07:04:40 +01:00
1 parent fce3191d28
commit e36f03f339
2 files changed
-2

No files matched your search

-1
View File
@@ -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())
{
-1
View File
@@ -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())