Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
5ed5f21d
Commit
5ed5f21d
authored
Feb 25, 2011
by
Austin English
Committed by
Alexandre Julliard
Feb 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mlang/tests: Remove win9x hacks.
parent
d3854358
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
45 deletions
+7
-45
mlang.c
dlls/mlang/tests/mlang.c
+7
-45
No files found.
dlls/mlang/tests/mlang.c
View file @
5ed5f21d
...
@@ -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 */
my
lstrcpyW
(
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
(
(
!
my
lstrcmpW
(
prfc
->
wszLocaleName
,
info_table
[
i
].
localename
))
||
ok
(
(
!
lstrcmpW
(
prfc
->
wszLocaleName
,
info_table
[
i
].
localename
))
||
broken
(
!
my
lstrcmpW
(
prfc
->
wszLocaleName
,
info_table
[
i
].
broken_name
))
||
/* IE < 6.0 */
broken
(
!
lstrcmpW
(
prfc
->
wszLocaleName
,
info_table
[
i
].
broken_name
))
||
/* IE < 6.0 */
broken
(
!
my
lstrcmpW
(
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
(
(
!
my
lstrcmpW
(
prfc
->
wszLocaleName
,
info_table
[
i
].
localename
))
||
ok
(
(
!
lstrcmpW
(
prfc
->
wszLocaleName
,
info_table
[
i
].
localename
))
||
broken
(
!
my
lstrcmpW
(
prfc
->
wszLocaleName
,
info_table
[
i
].
broken_name
))
||
/* IE < 6.0 */
broken
(
!
lstrcmpW
(
prfc
->
wszLocaleName
,
info_table
[
i
].
broken_name
))
||
/* IE < 6.0 */
broken
(
!
my
lstrcmpW
(
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment