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.
master
Andrzej Rybczak 15 years ago
parent fce3191d28
commit e36f03f339
  1. 1
      src/tag_editor.cpp
  2. 1
      src/tiny_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())
{

@ -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())

Loading…
Cancel
Save