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
2011-02-03 07:04:40 +01:00
parent fce3191d28
commit e36f03f339
2 changed files with 0 additions and 2 deletions

View File

@@ -974,7 +974,6 @@ bool TagEditor::WriteTags(MPD::Song &s)
if (file_is_from_db) if (file_is_from_db)
path_to_file += Config.mpd_music_dir; path_to_file += Config.mpd_music_dir;
path_to_file += s.GetFile(); path_to_file += s.GetFile();
locale_to_utf(path_to_file);
TagLib::FileRef f(path_to_file.c_str()); TagLib::FileRef f(path_to_file.c_str());
if (!f.isNull()) if (!f.isNull())
{ {

View File

@@ -182,7 +182,6 @@ bool TinyTagEditor::GetTags()
if (s.isFromDB()) if (s.isFromDB())
path_to_file += Config.mpd_music_dir; path_to_file += Config.mpd_music_dir;
path_to_file += s.GetFile(); path_to_file += s.GetFile();
locale_to_utf(path_to_file);
TagLib::FileRef f(path_to_file.c_str()); TagLib::FileRef f(path_to_file.c_str());
if (f.isNull()) if (f.isNull())