- [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:
Aleksandar Fabijanic
2009-04-01 02:33:51 +00:00
parent 7007646ea2
commit d77ef57588
6 changed files with 78 additions and 65 deletions

View File

@@ -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);
}