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
725cb2f3
Commit
725cb2f3
authored
Jan 16, 2011
by
Greg Geldorp
Committed by
Alexandre Julliard
Jan 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt/tests: Use different method to determine non-SBCS locale.
parent
568b0d5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
string.c
dlls/msvcrt/tests/string.c
+5
-2
No files found.
dlls/msvcrt/tests/string.c
View file @
725cb2f3
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
#include "wine/test.h"
#include "wine/test.h"
#include "winbase.h"
#include "winbase.h"
#include "winnls.h"
#include <string.h>
#include <string.h>
#include <mbstring.h>
#include <mbstring.h>
#include <stdlib.h>
#include <stdlib.h>
...
@@ -194,6 +195,7 @@ static void test_mbcp(void)
...
@@ -194,6 +195,7 @@ static void test_mbcp(void)
unsigned
char
*
mbsonlylead
=
(
unsigned
char
*
)
"
\xb0\0\xb1\xb2
\xb3
"
;
unsigned
char
*
mbsonlylead
=
(
unsigned
char
*
)
"
\xb0\0\xb1\xb2
\xb3
"
;
unsigned
char
buf
[
16
];
unsigned
char
buf
[
16
];
int
step
;
int
step
;
CPINFO
cp_info
;
/* _mbtype tests */
/* _mbtype tests */
...
@@ -357,13 +359,14 @@ static void test_mbcp(void)
...
@@ -357,13 +359,14 @@ static void test_mbcp(void)
* we hope the current locale to be SBCS because setlocale(LC_ALL, ".1252") seems not to work yet
* we hope the current locale to be SBCS because setlocale(LC_ALL, ".1252") seems not to work yet
* (as of Wine 0.9.43)
* (as of Wine 0.9.43)
*/
*/
if
(
*
p__mb_cur_max
==
1
)
GetCPInfo
(
GetACP
(),
&
cp_info
);
if
(
cp_info
.
MaxCharSize
==
1
)
{
{
expect_eq
(
mblen
((
char
*
)
mbstring
,
3
),
1
,
int
,
"%x"
);
expect_eq
(
mblen
((
char
*
)
mbstring
,
3
),
1
,
int
,
"%x"
);
expect_eq
(
_mbstrlen
((
char
*
)
mbstring2
),
7
,
int
,
"%d"
);
expect_eq
(
_mbstrlen
((
char
*
)
mbstring2
),
7
,
int
,
"%d"
);
}
}
else
else
skip
(
"Current locale has double-byte charset - could lea
ve
to false positives
\n
"
);
skip
(
"Current locale has double-byte charset - could lea
d
to false positives
\n
"
);
_setmbcp
(
1361
);
_setmbcp
(
1361
);
expect_eq
(
_ismbblead
(
0x80
),
0
,
int
,
"%d"
);
expect_eq
(
_ismbblead
(
0x80
),
0
,
int
,
"%d"
);
...
...
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