always save and read id3 tags in unicode

This commit is contained in:
Andrzej Rybczak
2009-01-11 15:43:12 +01:00
parent 0d9aea79c2
commit 73c166a029
4 changed files with 21 additions and 23 deletions

View File

@@ -764,7 +764,7 @@ void GetInfo(Song &s, Scrollpad &info)
path_to_file += s.GetFile();
TagLib::FileRef f(path_to_file.c_str());
if (!f.isNull())
s.SetComment(f.tag()->comment().to8Bit(UNICODE));
s.SetComment(f.tag()->comment().to8Bit(1));
# endif // HAVE_TAGLIB_H
info << fmtBold << Config.color1 << "Filename: " << fmtBoldEnd << Config.color2 << s.GetName() << "\n" << clEnd;