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
1f632a29
Commit
1f632a29
authored
Oct 26, 2007
by
Mikolaj Zalewski
Committed by
Alexandre Julliard
Oct 29, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt/tests: Loosen the mbctype test to pass under Windows 9x and NT 4.0.
parent
f2e7c43d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
11 deletions
+18
-11
string.c
dlls/msvcrt/tests/string.c
+18
-11
No files found.
dlls/msvcrt/tests/string.c
View file @
1f632a29
...
...
@@ -127,14 +127,6 @@ static void test_codepage(int cp)
#else
/* RLE-encoded mbctype tables for given codepages */
static
int
result_cp_1252_mbctype
[]
=
{
0x0
,
66
,
0x10
,
26
,
0x0
,
6
,
0x20
,
26
,
0x0
,
8
,
0x20
,
1
,
0x0
,
6
,
0x10
,
1
,
0x0
,
1
,
0x10
,
1
,
0x0
,
1
,
0x10
,
1
,
0x0
,
11
,
0x20
,
1
,
0x0
,
1
,
0x20
,
1
,
0x0
,
1
,
0x20
,
1
,
0x10
,
1
,
0x0
,
10
,
0x20
,
1
,
0x0
,
10
,
0x20
,
1
,
0x0
,
4
,
0x20
,
1
,
0x0
,
5
,
0x10
,
23
,
0x0
,
1
,
0x10
,
7
,
0x20
,
24
,
0x0
,
1
,
32
,
8
};
static
int
result_cp_1250_mbctype
[]
=
{
0x0
,
66
,
0x10
,
26
,
0x0
,
6
,
0x20
,
26
,
0x0
,
15
,
0x10
,
1
,
0x0
,
1
,
0x10
,
4
,
0x0
,
10
,
0x20
,
1
,
0x0
,
1
,
0x20
,
4
,
0x0
,
3
,
0x10
,
1
,
0x0
,
1
,
0x10
,
1
,
0x0
,
4
,
0x10
,
1
,
0x0
,
4
,
0x10
,
1
,
0x0
,
3
,
0x20
,
1
,
0x0
,
1
,
0x20
,
1
,
0x0
,
3
,
0x20
,
2
,
0x0
,
1
,
0x10
,
1
,
0x0
,
1
,
0x20
,
2
,
0x10
,
23
,
0x0
,
1
,
0x10
,
7
,
0x20
,
24
,
0x0
,
1
,
0x20
,
7
,
0
,
1
};
static
int
result_cp_932_mbctype
[]
=
{
0x0
,
65
,
0x8
,
1
,
0x18
,
26
,
0x8
,
6
,
0x28
,
26
,
0x8
,
4
,
0x0
,
1
,
0x8
,
1
,
0xc
,
31
,
0x8
,
1
,
0xa
,
5
,
0x9
,
58
,
0xc
,
29
,
0
,
3
};
static
int
result_cp_936_mbctype
[]
=
{
0x0
,
65
,
0x8
,
1
,
0x18
,
26
,
0x8
,
6
,
0x28
,
26
,
0x8
,
6
,
...
...
@@ -187,9 +179,24 @@ static void test_mbcp(void)
unsigned
char
buf
[
16
];
int
step
;
/* some two single-byte code pages*/
test_codepage
(
1252
);
test_codepage
(
1250
);
/* _mbtype tests */
/* An SBCS codepage test. The ctype of characters on e.g. CP1252 or CP1250 differs slightly
* between versions of Windows. Also Windows 9x seems to ignore the codepage and always uses
* CP1252 (or the ACP?) so we test only a few ASCII characters */
_setmbcp
(
1252
);
expect_eq
(
_mbctype
[
10
],
0
,
char
,
"%x"
);
expect_eq
(
_mbctype
[
50
],
0
,
char
,
"%x"
);
expect_eq
(
_mbctype
[
66
],
_SBUP
,
char
,
"%x"
);
expect_eq
(
_mbctype
[
100
],
_SBLOW
,
char
,
"%x"
);
expect_eq
(
_mbctype
[
128
],
0
,
char
,
"%x"
);
_setmbcp
(
1250
);
expect_eq
(
_mbctype
[
10
],
0
,
char
,
"%x"
);
expect_eq
(
_mbctype
[
50
],
0
,
char
,
"%x"
);
expect_eq
(
_mbctype
[
66
],
_SBUP
,
char
,
"%x"
);
expect_eq
(
_mbctype
[
100
],
_SBLOW
,
char
,
"%x"
);
expect_eq
(
_mbctype
[
128
],
0
,
char
,
"%x"
);
/* double byte code pages */
test_codepage_todo
(
932
,
todo_cp_932
);
test_codepage
(
936
);
...
...
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