shlwapi: Fixed string tests for non-English locales.

This commit is contained in:
Alexandre Julliard 2006-12-08 12:55:43 +01:00
parent 1f07e4af18
commit f662e2548b
1 changed files with 8 additions and 6 deletions

View File

@ -761,8 +761,8 @@ START_TEST(string)
TCHAR decimalDelim[8];
CoInitialize(0);
GetLocaleInfo(GetUserDefaultLCID(), LOCALE_STHOUSAND, thousandDelim, 8);
GetLocaleInfo(GetUserDefaultLCID(), LOCALE_SDECIMAL, decimalDelim, 8);
GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_STHOUSAND, thousandDelim, 8);
GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SDECIMAL, decimalDelim, 8);
hShlwapi = GetModuleHandleA("shlwapi");
if (!hShlwapi)
@ -787,11 +787,13 @@ START_TEST(string)
test_StrFormatKBSizeA();
test_StrFormatKBSizeW();
}
if (0)
{
/* language-dependent test. FIXME: how to detect the language? */
/* language-dependent test */
if (PRIMARYLANGID(GetUserDefaultLangID()) != LANG_ENGLISH)
trace("Skipping StrFromTimeInterval test for non English language\n");
else
test_StrFromTimeIntervalA();
}
test_StrCmpA();
test_StrCmpW();
test_StrRetToBSTR();