Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b413d497
Commit
b413d497
authored
Nov 15, 2023
by
Santino Mazza
Committed by
Alexandre Julliard
Nov 20, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mlang/tests: Test GetStrCodePages with different codepages character.
parent
03d616b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
mlang.c
dlls/mlang/tests/mlang.c
+22
-1
No files found.
dlls/mlang/tests/mlang.c
View file @
b413d497
...
...
@@ -1163,7 +1163,7 @@ static void IMLangFontLink_Test(IMLangFontLink* iMLFL)
DWORD
dwCodePages
,
dwManyCodePages
;
DWORD
dwCmpCodePages
;
UINT
CodePage
;
static
const
WCHAR
str
[]
=
{
'd'
,
0x0436
,
0xff90
};
static
const
WCHAR
str
[]
=
{
'd'
,
0x0436
,
0xff90
,
0x0160
};
LONG
processed
;
HRESULT
ret
;
...
...
@@ -1220,6 +1220,19 @@ static void IMLangFontLink_Test(IMLangFontLink* iMLFL)
ok
(
dwCodePages
==
dwCmpCodePages
,
"expected %lx, got %lx
\n
"
,
dwCmpCodePages
,
dwCodePages
);
ok
(
processed
==
1
,
"expected 1, got %ld
\n
"
,
processed
);
/* Latin 2 */
dwCmpCodePages
=
FS_LATIN1
|
FS_LATIN2
|
FS_TURKISH
|
FS_BALTIC
;
ret
=
IMLangFontLink_GetCharCodePages
(
iMLFL
,
0x0160
,
&
dwCodePages
);
ok
(
ret
==
S_OK
,
"IMLangFontLink_GetCharCodePages error %lx
\n
"
,
ret
);
ok
(
dwCodePages
==
dwCmpCodePages
,
"expected %lx, got %lx
\n
"
,
dwCmpCodePages
,
dwCodePages
);
dwCodePages
=
0
;
processed
=
0
;
ret
=
IMLangFontLink_GetStrCodePages
(
iMLFL
,
&
str
[
3
],
1
,
0
,
&
dwCodePages
,
&
processed
);
ok
(
ret
==
S_OK
,
"IMLangFontLink_GetStrCodePages error %lx
\n
"
,
ret
);
ok
(
dwCodePages
==
dwCmpCodePages
,
"expected %lx, got %lx
\n
"
,
dwCmpCodePages
,
dwCodePages
);
ok
(
processed
==
1
,
"expected 1, got %ld
\n
"
,
processed
);
/* Cyrillic */
dwCmpCodePages
=
FS_CYRILLIC
|
FS_JISJAPAN
|
FS_CHINESESIMP
|
FS_WANSUNG
;
ret
=
IMLangFontLink_GetCharCodePages
(
iMLFL
,
0x0436
,
&
dwCodePages
);
...
...
@@ -1262,6 +1275,14 @@ static void IMLangFontLink_Test(IMLangFontLink* iMLFL)
ok
(
dwCodePages
==
dwCmpCodePages
,
"expected %lx, got %lx
\n
"
,
dwCmpCodePages
,
dwCodePages
);
ok
(
processed
==
3
,
"expected 3, got %ld
\n
"
,
processed
);
dwCmpCodePages
=
FS_JISJAPAN
;
dwCodePages
=
0
;
processed
=
0
;
ret
=
IMLangFontLink_GetStrCodePages
(
iMLFL
,
str
,
4
,
0
,
&
dwCodePages
,
&
processed
);
ok
(
ret
==
S_OK
,
"IMLangFontLink_GetStrCodePages error %lx
\n
"
,
ret
);
todo_wine
ok
(
dwCodePages
==
dwCmpCodePages
,
"expected %lx, got %lx
\n
"
,
dwCmpCodePages
,
dwCodePages
);
todo_wine
ok
(
processed
==
3
,
"expected 3, got %ld
\n
"
,
processed
);
dwCodePages
=
0xffff
;
processed
=
-
1
;
ret
=
IMLangFontLink_GetStrCodePages
(
iMLFL
,
&
str
[
2
],
1
,
0
,
&
dwCodePages
,
&
processed
);
...
...
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