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
632266e5
Commit
632266e5
authored
May 15, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 16, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Set C3_KASHIDA only for kashida character.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
73f7bf57
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
locale.c
dlls/kernel32/locale.c
+1
-1
locale.c
dlls/kernel32/tests/locale.c
+12
-0
No files found.
dlls/kernel32/locale.c
View file @
632266e5
...
...
@@ -2864,7 +2864,7 @@ BOOL WINAPI GetStringTypeW( DWORD type, LPCWSTR src, INT count, LPWORD chartype
if
((
c
>=
0x30A0
)
&&
(
c
<=
0x30FF
))
type3
|=
C3_KATAKANA
;
if
((
c
>=
0x3040
)
&&
(
c
<=
0x309F
))
type3
|=
C3_HIRAGANA
;
if
((
c
>=
0x4E00
)
&&
(
c
<=
0x9FAF
))
type3
|=
C3_IDEOGRAPH
;
if
(
(
c
>=
0x0600
)
&&
(
c
<=
0x06FF
)
)
type3
|=
C3_KASHIDA
;
if
(
c
==
0x0640
)
type3
|=
C3_KASHIDA
;
if
((
c
>=
0x3000
)
&&
(
c
<=
0x303F
))
type3
|=
C3_SYMBOL
;
if
((
c
>=
0xD800
)
&&
(
c
<=
0xDBFF
))
type3
|=
C3_HIGHSURROGATE
;
...
...
dlls/kernel32/tests/locale.c
View file @
632266e5
...
...
@@ -3766,6 +3766,18 @@ static void test_GetStringTypeW(void)
GetStringTypeW
(
CT_CTYPE1
,
ch
,
2
,
types
);
ok
(
types
[
0
]
==
(
C1_DEFINED
|
C1_SPACE
),
"got %x
\n
"
,
types
[
0
]);
ok
(
types
[
1
]
==
(
C1_DEFINED
|
C1_SPACE
),
"got %x
\n
"
,
types
[
1
]);
/* check Arabic range for kashida flag */
for
(
ch
[
0
]
=
0x600
;
ch
[
0
]
<=
0x6ff
;
ch
[
0
]
+=
1
)
{
types
[
0
]
=
0
;
ret
=
GetStringTypeW
(
CT_CTYPE3
,
ch
,
1
,
types
);
ok
(
ret
,
"%#x: failed %d
\n
"
,
ch
[
0
],
ret
);
if
(
ch
[
0
]
==
0x640
)
/* ARABIC TATWEEL (Kashida) */
ok
(
types
[
0
]
&
C3_KASHIDA
,
"%#x: type %#x
\n
"
,
ch
[
0
],
types
[
0
]);
else
ok
(
!
(
types
[
0
]
&
C3_KASHIDA
),
"%#x: type %#x
\n
"
,
ch
[
0
],
types
[
0
]);
}
}
static
void
test_IdnToNameprepUnicode
(
void
)
...
...
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