diff --git a/src/tests/kits/locale/ICUTest.cpp b/src/tests/kits/locale/ICUTest.cpp index 629dbaf1cc..55363dd956 100644 --- a/src/tests/kits/locale/ICUTest.cpp +++ b/src/tests/kits/locale/ICUTest.cpp @@ -23,9 +23,9 @@ void TestLocale(const Locale& loc) assert(!loc.isBogus()); printf("-- basic info\n"); printf("Default locale:\nLanguage: %s\nScript: %s\nVariant: %s\n" - "Country: %s\nName: %s\nBaseName: %s\n", loc.getLanguage(), - loc.getScript(), loc.getVariant(), - loc.getCountry(), loc.getName(), + "Country: %s\nName: %s\nBaseName: %s\n", loc.getLanguage(), + loc.getScript(), loc.getVariant(), + loc.getCountry(), loc.getName(), loc.getBaseName()); UErrorCode err = U_ZERO_ERROR; @@ -36,13 +36,13 @@ void TestLocale(const Locale& loc) if (keywords == NULL) printf("FAILED: getting keywords list returned NULL\n"); else { - printf("Keywords: %d available\n",keywords->count(err)); + printf("Keywords: %d available\n", keywords->count(err)); assert(err == U_ZERO_ERROR); char keyvalue[256]; - while (const char* keyname = keywords->next(NULL,err)) { - loc.getKeywordValue(keyname,keyvalue,256,err); - printf("%s > %s\n",keyname,keyvalue); + while (const char* keyname = keywords->next(NULL, err)) { + loc.getKeywordValue(keyname, keyvalue, 256, err); + printf("%s > %s\n", keyname, keyvalue); } delete keywords; @@ -53,7 +53,7 @@ void TestLocale(const Locale& loc) int main(int argc, char **argv) { - printf("--------\niDefault Locale\n--------\n"); + printf("--------\nDefault Locale\n--------\n"); Locale defaultLocale; TestLocale(defaultLocale); printf("--------\nFrench Locale\n--------\n"); @@ -66,18 +66,20 @@ main(int argc, char **argv) printf("--------\nLocale listing\n--------\n"); int32_t count; const Locale* localeList = Locale::getAvailableLocales(count); - printf("%d locales found\n",count); + printf("%d locales found\n", count); for (int i=0; i