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:
@@ -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())
|
||||
{
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user