mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 21:14:23 -04:00
Add a test for unpaired surrogate characters in a UTF-16 string.
This commit is contained in:
@ -176,6 +176,10 @@ public:
|
||||
|
||||
const String s2(v2, String::UTF8);
|
||||
CPPUNIT_ASSERT_EQUAL(s2.data(String::UTF16), v1);
|
||||
|
||||
const ByteVector v3("\xff\xfe\xb7\xdf\xce\x91\x4b\x5c");
|
||||
const String s3(v2, String::UTF16);
|
||||
CPPUNIT_ASSERT(s3.isEmpty());
|
||||
}
|
||||
|
||||
void testAppendStringDetach()
|
||||
|
Reference in New Issue
Block a user