Commit f662e254 authored by Alexandre Julliard's avatar Alexandre Julliard

shlwapi: Fixed string tests for non-English locales.

parent 1f07e4af
...@@ -761,8 +761,8 @@ START_TEST(string) ...@@ -761,8 +761,8 @@ START_TEST(string)
TCHAR decimalDelim[8]; TCHAR decimalDelim[8];
CoInitialize(0); CoInitialize(0);
GetLocaleInfo(GetUserDefaultLCID(), LOCALE_STHOUSAND, thousandDelim, 8); GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_STHOUSAND, thousandDelim, 8);
GetLocaleInfo(GetUserDefaultLCID(), LOCALE_SDECIMAL, decimalDelim, 8); GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SDECIMAL, decimalDelim, 8);
hShlwapi = GetModuleHandleA("shlwapi"); hShlwapi = GetModuleHandleA("shlwapi");
if (!hShlwapi) if (!hShlwapi)
...@@ -787,11 +787,13 @@ START_TEST(string) ...@@ -787,11 +787,13 @@ START_TEST(string)
test_StrFormatKBSizeA(); test_StrFormatKBSizeA();
test_StrFormatKBSizeW(); test_StrFormatKBSizeW();
} }
if (0)
{ /* language-dependent test */
/* language-dependent test. FIXME: how to detect the language? */ if (PRIMARYLANGID(GetUserDefaultLangID()) != LANG_ENGLISH)
trace("Skipping StrFromTimeInterval test for non English language\n");
else
test_StrFromTimeIntervalA(); test_StrFromTimeIntervalA();
}
test_StrCmpA(); test_StrCmpA();
test_StrCmpW(); test_StrCmpW();
test_StrRetToBSTR(); test_StrRetToBSTR();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment