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
068a419e
Commit
068a419e
authored
Jul 21, 2020
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Don't use get_char_typeW in _iswctype_l.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d0c79559
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
8 deletions
+17
-8
msvcrt.h
dlls/msvcrt/msvcrt.h
+1
-0
wcs.c
dlls/msvcrt/wcs.c
+12
-2
misc.c
dlls/ucrtbase/tests/misc.c
+4
-6
No files found.
dlls/msvcrt/msvcrt.h
View file @
068a419e
...
...
@@ -314,6 +314,7 @@ extern unsigned int MSVCRT___lc_codepage;
extern
int
MSVCRT___lc_collate_cp
;
extern
WORD
MSVCRT__ctype
[
257
];
extern
BOOL
initial_locale
DECLSPEC_HIDDEN
;
extern
WORD
*
MSVCRT__pwctype
;
void
msvcrt_set_errno
(
int
)
DECLSPEC_HIDDEN
;
#if _MSVCR_VER >= 80
...
...
dlls/msvcrt/wcs.c
View file @
068a419e
...
...
@@ -1919,7 +1919,17 @@ MSVCRT_size_t CDECL MSVCRT_wcrtomb( char *dst, MSVCRT_wchar_t ch, MSVCRT_mbstate
*/
INT
CDECL
MSVCRT__iswctype_l
(
MSVCRT_wchar_t
wc
,
MSVCRT_wctype_t
type
,
MSVCRT__locale_t
locale
)
{
return
(
get_char_typeW
(
wc
)
&
0xffff
)
&
type
;
WORD
ct
;
if
(
wc
==
MSVCRT_WEOF
)
return
0
;
if
(
wc
<
256
)
return
MSVCRT__pwctype
[
wc
]
&
type
;
if
(
!
GetStringTypeW
(
CT_CTYPE1
,
&
wc
,
1
,
&
ct
))
{
ERR
(
"GetStringTypeW failed for %x
\n
"
,
wc
);
return
0
;
}
return
ct
&
type
;
}
/*********************************************************************
...
...
@@ -1927,7 +1937,7 @@ INT CDECL MSVCRT__iswctype_l( MSVCRT_wchar_t wc, MSVCRT_wctype_t type, MSVCRT__l
*/
INT
CDECL
MSVCRT_iswctype
(
MSVCRT_wchar_t
wc
,
MSVCRT_wctype_t
type
)
{
return
(
get_char_typeW
(
wc
)
&
0xfff
)
&
type
;
return
MSVCRT__iswctype_l
(
wc
,
type
,
NULL
)
;
}
/*********************************************************************
...
...
dlls/ucrtbase/tests/misc.c
View file @
068a419e
...
...
@@ -557,17 +557,15 @@ static void test_isblank(void)
for
(
c
=
0
;
c
<=
0xffff
;
c
++
)
{
if
(
c
==
'\t'
||
c
==
' '
||
c
==
0x3000
||
c
==
0xfeff
)
{
if
(
c
==
'\t'
)
todo_wine
ok
(
!
_iswctype_l
(
c
,
_BLANK
,
NULL
),
"tab shouldn't be blank
\n
"
);
ok
(
!
_iswctype_l
(
c
,
_BLANK
,
NULL
),
"tab shouldn't be blank
\n
"
);
else
ok
(
_iswctype_l
(
c
,
_BLANK
,
NULL
),
"%d should be blank
\n
"
,
c
);
ok
(
iswblank
(
c
),
"%d should be blank
\n
"
,
c
);
ok
(
_iswblank_l
(
c
,
NULL
),
"%d should be blank
\n
"
,
c
);
}
else
{
todo_wine_if
(
c
==
0xa0
)
{
ok
(
!
_iswctype_l
(
c
,
_BLANK
,
NULL
),
"%d shouldn't be blank
\n
"
,
c
);
ok
(
!
iswblank
(
c
),
"%d shouldn't be blank
\n
"
,
c
);
ok
(
!
_iswblank_l
(
c
,
NULL
),
"%d shouldn't be blank
\n
"
,
c
);
}
ok
(
!
_iswctype_l
(
c
,
_BLANK
,
NULL
),
"%d shouldn't be blank
\n
"
,
c
);
ok
(
!
iswblank
(
c
),
"%d shouldn't be blank
\n
"
,
c
);
ok
(
!
_iswblank_l
(
c
,
NULL
),
"%d shouldn't be blank
\n
"
,
c
);
}
}
}
...
...
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