Don't try to write non-Latin1 values to ID3v1 tags since they'll ugly things will

happen when some of the characters are null.  This behavior can still be customized
via the StringHandler.

CCBUG:99149


git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@768597 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
Scott Wheeler 2008-01-30 12:47:03 +00:00
parent bdad22b3c6
commit d26e09926e

View File

@ -64,6 +64,11 @@ String ID3v1::StringHandler::parse(const ByteVector &data) const
ByteVector ID3v1::StringHandler::render(const String &s) const
{
if(!s.isLatin1())
{
return ByteVector();
}
return s.data(String::Latin1);
}