mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-19 00:46:03 +01:00
merge fix for #722
This commit is contained in:
parent
84094a4764
commit
1839606332
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user