merge fix for #722

This commit is contained in:
Guenter Obiltschnig 2015-07-31 12:32:52 +02:00
parent 84094a4764
commit 1839606332

View File

@ -47,9 +47,9 @@ private:
// Convert from UTF-8 to wide
T wtext, wtext2, wtext3;
Poco::UnicodeConverter::convert(text, wtext);
if (sizeof(T) == 2)
if (sizeof(typename T::value_type) == 2)
assert(Poco::UnicodeConverter::UTFStrlen(wtext.data()) == 8);
else if (sizeof(T) == 4)
else if (sizeof(typename T::value_type) == 4)
assert(Poco::UnicodeConverter::UTFStrlen(wtext.data()) == 5);
Poco::UnicodeConverter::convert((const char*) supp, strlen((const char*) supp), wtext2);
Poco::UnicodeConverter::convert((const char*)supp, wtext3);