From fcf3acb6dda7bbc9d16c6f2f0de83b38402f8401 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sat, 3 Oct 2009 17:41:28 +0200 Subject: [PATCH] convert tags to wide strings in TagEditor::GetTagList() This fixes writing tags that contain non-ascii characters if non-unicode locale is used. --- src/tag_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tag_editor.cpp b/src/tag_editor.cpp index 53ae52b1..d71f33fb 100644 --- a/src/tag_editor.cpp +++ b/src/tag_editor.cpp @@ -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))); } }