From: Andy Heninger Date: Fri, 9 Oct 2015 18:14:23 +0000 (+0000) Subject: ICU-11856 Intltest messages, use system codepage conversion. X-Git-Tag: milestone-59-0-1~807 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f297b7ad250f9706f97493a33e2539ddc0bb381;p=icu ICU-11856 Intltest messages, use system codepage conversion. X-SVN-Rev: 38055 --- diff --git a/icu4c/source/test/intltest/intltest.cpp b/icu4c/source/test/intltest/intltest.cpp index ace7e6be14a..caa1c165803 100644 --- a/icu4c/source/test/intltest/intltest.cpp +++ b/icu4c/source/test/intltest/intltest.cpp @@ -935,7 +935,7 @@ void IntlTest::log(const char *fmt, ...) vsprintf(buffer, fmt, ap); va_end(ap); if( verbose ) { - log(UnicodeString(buffer, "")); + log(UnicodeString(buffer, (const char *)NULL)); } } @@ -949,8 +949,7 @@ void IntlTest::logln(const char *fmt, ...) vsprintf(buffer, fmt, ap); va_end(ap); if( verbose ) { - // TODO: change to default conversion in UnicodeString constructor. - logln(UnicodeString(buffer, "")); + logln(UnicodeString(buffer, (const char *)NULL)); } } @@ -963,7 +962,7 @@ UBool IntlTest::logKnownIssue(const char *ticket, const char *fmt, ...) /* sprintf it just to make sure that the information is valid */ vsprintf(buffer, fmt, ap); va_end(ap); - return logKnownIssue(ticket, UnicodeString(buffer, "")); + return logKnownIssue(ticket, UnicodeString(buffer, (const char *)NULL)); } UBool IntlTest::logKnownIssue(const char *ticket) { @@ -1001,7 +1000,7 @@ void IntlTest::info(const char *fmt, ...) /* sprintf it just to make sure that the information is valid */ vsprintf(buffer, fmt, ap); va_end(ap); - info(UnicodeString(buffer, "")); + info(UnicodeString(buffer, (const char *)NULL)); } void IntlTest::infoln(const char *fmt, ...) @@ -1013,7 +1012,7 @@ void IntlTest::infoln(const char *fmt, ...) /* sprintf it just to make sure that the information is valid */ vsprintf(buffer, fmt, ap); va_end(ap); - infoln(UnicodeString(buffer, "")); + infoln(UnicodeString(buffer, (const char *)NULL)); } void IntlTest::err(const char *fmt, ...) @@ -1024,7 +1023,7 @@ void IntlTest::err(const char *fmt, ...) va_start(ap, fmt); vsprintf(buffer, fmt, ap); va_end(ap); - err(UnicodeString(buffer, "")); + err(UnicodeString(buffer, (const char *)NULL)); } void IntlTest::errln(const char *fmt, ...) @@ -1035,7 +1034,7 @@ void IntlTest::errln(const char *fmt, ...) va_start(ap, fmt); vsprintf(buffer, fmt, ap); va_end(ap); - errln(UnicodeString(buffer, "")); + errln(UnicodeString(buffer, (const char *)NULL)); } void IntlTest::dataerrln(const char *fmt, ...) @@ -1046,7 +1045,7 @@ void IntlTest::dataerrln(const char *fmt, ...) va_start(ap, fmt); vsprintf(buffer, fmt, ap); va_end(ap); - dataerrln(UnicodeString(buffer, "")); + dataerrln(UnicodeString(buffer, (const char *)NULL)); } void IntlTest::errcheckln(UErrorCode status, const char *fmt, ...) @@ -1059,9 +1058,9 @@ void IntlTest::errcheckln(UErrorCode status, const char *fmt, ...) va_end(ap); if (status == U_FILE_ACCESS_ERROR || status == U_MISSING_RESOURCE_ERROR) { - dataerrln(UnicodeString(buffer, "")); + dataerrln(UnicodeString(buffer, (const char *)NULL)); } else { - errln(UnicodeString(buffer, "")); + errln(UnicodeString(buffer, (const char *)NULL)); } }