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:
@@ -1097,7 +1097,7 @@ void TagEditor::GetTagList(TagLib::StringList &list, const std::string &s)
|
|||||||
while (s[i] == ' ')
|
while (s[i] == ' ')
|
||||||
++i;
|
++i;
|
||||||
size_t j = s.find(",", 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)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user