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
ebb8311a
Commit
ebb8311a
authored
Jun 04, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Don't check every single Unicode char if the tables are clearly not compatible.
parent
ea1a1829
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
locale.c
dlls/kernel32/tests/locale.c
+7
-2
No files found.
dlls/kernel32/tests/locale.c
View file @
ebb8311a
...
@@ -1620,7 +1620,7 @@ static void test_FoldStringA(void)
...
@@ -1620,7 +1620,7 @@ static void test_FoldStringA(void)
static
void
test_FoldStringW
(
void
)
static
void
test_FoldStringW
(
void
)
{
{
int
ret
;
int
ret
;
unsigned
int
i
,
j
;
unsigned
int
i
,
j
,
failures
;
WCHAR
src
[
256
],
dst
[
256
],
ch
,
prev_ch
=
1
;
WCHAR
src
[
256
],
dst
[
256
],
ch
,
prev_ch
=
1
;
static
const
DWORD
badFlags
[]
=
static
const
DWORD
badFlags
[]
=
{
{
...
@@ -1907,7 +1907,7 @@ static void test_FoldStringW(void)
...
@@ -1907,7 +1907,7 @@ static void test_FoldStringW(void)
}
}
/* MAP_FOLDCZONE */
/* MAP_FOLDCZONE */
for
(
ch
=
1
;
ch
<
0xffff
;
ch
++
)
for
(
ch
=
1
,
failures
=
0
;
ch
<
0xffff
;
ch
++
)
{
{
WCHAR
expected
=
0
;
WCHAR
expected
=
0
;
...
@@ -1939,6 +1939,11 @@ static void test_FoldStringW(void)
...
@@ -1939,6 +1939,11 @@ static void test_FoldStringW(void)
ch
==
0xff9e
||
ch
==
0xff9f
,
ch
==
0xff9e
||
ch
==
0xff9f
,
"MAP_FOLDCZONE: ch %d 0x%04x Expected 0x%04x got 0x%04x
\n
"
,
"MAP_FOLDCZONE: ch %d 0x%04x Expected 0x%04x got 0x%04x
\n
"
,
ch
,
ch
,
expected
,
dst
[
0
]);
ch
,
ch
,
expected
,
dst
[
0
]);
if
(
dst
[
0
]
!=
expected
&&
ch
<
0xf000
&&
++
failures
>
50
)
{
trace
(
"MAP_FOLDCZONE: Too many failures, giving up
\n
"
);
break
;
}
}
}
/* MAP_EXPAND_LIGATURES */
/* MAP_EXPAND_LIGATURES */
...
...
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