no ascii >127 chars in string literals

Change-Id: Icf7fadc27823b0cd32795f3ab685602f9ad6c99c
This commit is contained in:
Luboš Luňák
2012-09-11 14:53:46 +02:00
parent 48c3b4e835
commit 1c5e30cb71

View File

@@ -149,7 +149,7 @@ namespace Stringtest
showContent(suStr_UriDecodeToIuri);
// string --> ustring
rtl::OString sStr("h\xE4llo");
rtl::OString sStr("h\xE4llo", strlen("h\xE4llo"));
rtl::OUString suString = rtl::OStringToOUString(sStr, RTL_TEXTENCODING_ISO_8859_15);
CPPUNIT_ASSERT_MESSAGE("Strings must be equal", suString.equals(suStr_UriDecodeToIuri) == sal_True);