mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
Add a test for unpaired surrogate characters in a UTF-16 string.
This commit is contained in:
parent
fc38a0e401
commit
586c9bd962
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user