mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 19:51:58 +01:00
- [SF 2513643] Seg fault in Poco::UTF8::toLower on 64-bit Linux
- removed support for 5- and 6-byte sequences - fixed error counting in StreamConverterBuf::readFromDevice() - added std::dec to poco_stdout_dbg and poco_stderr_dbg macros
This commit is contained in:
@@ -166,27 +166,13 @@ void TextIteratorTest::testOneUTF8()
|
||||
assert (*it++ == 0xabcde);
|
||||
assert (it == end);
|
||||
|
||||
// 5 byte sequence
|
||||
// 5 byte sequence - not supported
|
||||
n = encoding.convert(0xabcdef, data, sizeof(data));
|
||||
assert (n == 5);
|
||||
text.assign((char*) data, n);
|
||||
it = TextIterator(text, encoding);
|
||||
end = TextIterator(text);
|
||||
|
||||
assert (it != end);
|
||||
assert (*it++ == 0xabcdef);
|
||||
assert (it == end);
|
||||
assert (n == 0);
|
||||
|
||||
// 6 byte sequence
|
||||
// 6 byte sequence - not supported
|
||||
n = encoding.convert(0xfabcdef, data, sizeof(data));
|
||||
assert (n == 6);
|
||||
text.assign((char*) data, n);
|
||||
it = TextIterator(text, encoding);
|
||||
end = TextIterator(text);
|
||||
|
||||
assert (it != end);
|
||||
assert (*it++ == 0xfabcdef);
|
||||
assert (it == end);
|
||||
assert (n == 0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user