mirror of
https://github.com/taglib/taglib.git
synced 2025-06-03 00:58:12 -04:00
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:
parent
bdad22b3c6
commit
d26e09926e
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user