convert tags to wide strings in TagEditor::GetTagList()

This fixes writing tags that contain non-ascii
characters if non-unicode locale is used.
This commit is contained in:
Andrzej Rybczak
2009-10-03 17:41:28 +02:00
parent 14c601eebe
commit fcf3acb6dd

View File

@@ -1097,7 +1097,7 @@ void TagEditor::GetTagList(TagLib::StringList &list, const std::string &s)
while (s[i] == ' ')
++i;
size_t j = s.find(",", i);
list.append(TagLib::String(s.substr(i, j-i), TagLib::String::UTF8));
list.append(ToWString(s.substr(i, j-i)));
}
}