Commit 5ed5f21d authored by Austin English's avatar Austin English Committed by Alexandre Julliard

mlang/tests: Remove win9x hacks.

parent d3854358
...@@ -254,28 +254,6 @@ static BOOL init_function_ptrs(void) ...@@ -254,28 +254,6 @@ static BOOL init_function_ptrs(void)
ok(0, (format), string1, string2); \ ok(0, (format), string1, string2); \
} }
/* lstrcmpW is not supported on Win9x! */
static int mylstrcmpW(const WCHAR* str1, const WCHAR* str2)
{
if (!str2) return 1;
while (*str1 && *str1==*str2) {
str1++;
str2++;
}
return *str1-*str2;
}
/* lstrcpyW is not supported on Win95 */
static void mylstrcpyW(WCHAR* str1, const WCHAR* str2)
{
while (str2 && *str2) {
*str1 = *str2;
str1++;
str2++;
}
*str1 = '\0';
}
static void test_multibyte_to_unicode_translations(IMultiLanguage2 *iML2) static void test_multibyte_to_unicode_translations(IMultiLanguage2 *iML2)
{ {
/* these APIs are broken regarding constness of the input buffer */ /* these APIs are broken regarding constness of the input buffer */
...@@ -586,8 +564,6 @@ static void test_EnumCodePages(IMultiLanguage2 *iML2, DWORD flags) ...@@ -586,8 +564,6 @@ static void test_EnumCodePages(IMultiLanguage2 *iML2, DWORD flags)
#ifdef DUMP_CP_INFO #ifdef DUMP_CP_INFO
trace("%u: codepage %u family %u\n", i, cpinfo[i].uiCodePage, cpinfo[i].uiFamilyCodePage); trace("%u: codepage %u family %u\n", i, cpinfo[i].uiCodePage, cpinfo[i].uiFamilyCodePage);
#endif #endif
/* Win95 does not support UTF-7 */
if (cpinfo[i].uiCodePage == CP_UTF7) continue;
/* support files for some codepages might be not installed, or /* support files for some codepages might be not installed, or
* the codepage is just an alias. * the codepage is just an alias.
...@@ -1227,21 +1203,21 @@ static void test_GetRfc1766Info(IMultiLanguage2 *iML2) ...@@ -1227,21 +1203,21 @@ static void test_GetRfc1766Info(IMultiLanguage2 *iML2)
"#%02d: got '%s' (expected '%s')\n", i, rfc1766A, info_table[i].rfc1766); "#%02d: got '%s' (expected '%s')\n", i, rfc1766A, info_table[i].rfc1766);
/* Some IE versions truncate an oversized name one character to short */ /* Some IE versions truncate an oversized name one character to short */
mylstrcpyW(short_broken_name, info_table[i].broken_name); lstrcpyW(short_broken_name, info_table[i].broken_name);
short_broken_name[MAX_LOCALE_NAME - 2] = '\0'; short_broken_name[MAX_LOCALE_NAME - 2] = '\0';
if (info_table[i].todo & TODO_NAME) { if (info_table[i].todo & TODO_NAME) {
todo_wine todo_wine
ok( (!mylstrcmpW(prfc->wszLocaleName, info_table[i].localename)) || ok( (!lstrcmpW(prfc->wszLocaleName, info_table[i].localename)) ||
broken(!mylstrcmpW(prfc->wszLocaleName, info_table[i].broken_name)) || /* IE < 6.0 */ broken(!lstrcmpW(prfc->wszLocaleName, info_table[i].broken_name)) || /* IE < 6.0 */
broken(!mylstrcmpW(prfc->wszLocaleName, short_broken_name)), broken(!lstrcmpW(prfc->wszLocaleName, short_broken_name)),
"#%02d: got %s (expected %s)\n", i, "#%02d: got %s (expected %s)\n", i,
wine_dbgstr_w(prfc->wszLocaleName), wine_dbgstr_w(info_table[i].localename)); wine_dbgstr_w(prfc->wszLocaleName), wine_dbgstr_w(info_table[i].localename));
} }
else else
ok( (!mylstrcmpW(prfc->wszLocaleName, info_table[i].localename)) || ok( (!lstrcmpW(prfc->wszLocaleName, info_table[i].localename)) ||
broken(!mylstrcmpW(prfc->wszLocaleName, info_table[i].broken_name)) || /* IE < 6.0 */ broken(!lstrcmpW(prfc->wszLocaleName, info_table[i].broken_name)) || /* IE < 6.0 */
broken(!mylstrcmpW(prfc->wszLocaleName, short_broken_name)), broken(!lstrcmpW(prfc->wszLocaleName, short_broken_name)),
"#%02d: got %s (expected %s)\n", i, "#%02d: got %s (expected %s)\n", i,
wine_dbgstr_w(prfc->wszLocaleName), wine_dbgstr_w(info_table[i].localename)); wine_dbgstr_w(prfc->wszLocaleName), wine_dbgstr_w(info_table[i].localename));
...@@ -1902,20 +1878,6 @@ static void test_IsCodePageInstallable(IMultiLanguage2 *ml2) ...@@ -1902,20 +1878,6 @@ static void test_IsCodePageInstallable(IMultiLanguage2 *ml2)
UINT i; UINT i;
HRESULT hr; HRESULT hr;
SetLastError(0xdeadbeef);
lstrcmpW(NULL, NULL);
if (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
{
/* This corruption leads (sometimes) to test failures in oleaut32 but also
* to the inability to use the Regional Settings.
* This only seems to be an issue with Win98 and IE6 (mlang version 6.0.2800.1106).
*
* A reboot restores the codepages again.
*/
win_skip("IsCodePageInstallable could mess up the codepages on Win98\n");
return;
}
for (i = 0; i < 0xffff; i++) for (i = 0; i < 0xffff; i++)
{ {
hr = IMultiLanguage2_IsCodePageInstallable(ml2, i); hr = IMultiLanguage2_IsCodePageInstallable(ml2, i);
......
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