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
85cc5dd1
Commit
85cc5dd1
authored
Feb 23, 2010
by
David Hedberg
Committed by
Alexandre Julliard
Feb 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add trail bytes info for codepage 1361.
parent
4bc7c59f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
mbcs.c
dlls/msvcrt/mbcs.c
+1
-0
string.c
dlls/msvcrt/tests/string.c
+23
-0
No files found.
dlls/msvcrt/mbcs.c
View file @
85cc5dd1
...
...
@@ -48,6 +48,7 @@ static struct cp_extra_info_t g_cpextrainfo[] =
{
936
,
{
0x40
,
0xfe
,
0
,
0
}},
{
949
,
{
0x41
,
0xfe
,
0
,
0
}},
{
950
,
{
0x40
,
0x7e
,
0xa1
,
0xfe
,
0
,
0
}},
{
1361
,
{
0x31
,
0x7e
,
0x81
,
0xfe
,
0
,
0
}},
{
20932
,
{
1
,
255
,
0
,
0
}},
/* seems to give different results on different systems */
{
0
,
{
1
,
255
,
0
,
0
}}
/* match all with FIXME */
};
...
...
dlls/msvcrt/tests/string.c
View file @
85cc5dd1
...
...
@@ -345,6 +345,29 @@ static void test_mbcp(void)
else
skip
(
"Current locale has double-byte charset - could leave to false positives
\n
"
);
_setmbcp
(
1361
);
expect_eq
(
_ismbblead
(
0x80
),
0
,
int
,
"%d"
);
todo_wine
{
expect_eq
(
_ismbblead
(
0x81
),
1
,
int
,
"%d"
);
expect_eq
(
_ismbblead
(
0x83
),
1
,
int
,
"%d"
);
}
expect_eq
(
_ismbblead
(
0x84
),
1
,
int
,
"%d"
);
expect_eq
(
_ismbblead
(
0xd3
),
1
,
int
,
"%d"
);
expect_eq
(
_ismbblead
(
0xd7
),
0
,
int
,
"%d"
);
todo_wine
{
expect_eq
(
_ismbblead
(
0xd8
),
1
,
int
,
"%d"
);
}
expect_eq
(
_ismbblead
(
0xd9
),
1
,
int
,
"%d"
);
expect_eq
(
_ismbbtrail
(
0x30
),
0
,
int
,
"%d"
);
expect_eq
(
_ismbbtrail
(
0x31
),
1
,
int
,
"%d"
);
expect_eq
(
_ismbbtrail
(
0x7e
),
1
,
int
,
"%d"
);
expect_eq
(
_ismbbtrail
(
0x7f
),
0
,
int
,
"%d"
);
expect_eq
(
_ismbbtrail
(
0x80
),
0
,
int
,
"%d"
);
expect_eq
(
_ismbbtrail
(
0x81
),
1
,
int
,
"%d"
);
expect_eq
(
_ismbbtrail
(
0xfe
),
1
,
int
,
"%d"
);
expect_eq
(
_ismbbtrail
(
0xff
),
0
,
int
,
"%d"
);
_setmbcp
(
curr_mbcp
);
}
...
...
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