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)
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();
......
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