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
7a985573
Commit
7a985573
authored
Oct 18, 2021
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 18, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ucrtbase: Change _isblank_l return value for '\t'.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
65847333
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
ctype.c
dlls/msvcrt/ctype.c
+4
-1
misc.c
dlls/ucrtbase/tests/misc.c
+8
-5
No files found.
dlls/msvcrt/ctype.c
View file @
7a985573
...
...
@@ -397,7 +397,10 @@ int CDECL isxdigit(int c)
*/
int
CDECL
_isblank_l
(
int
c
,
_locale_t
locale
)
{
return
c
==
'\t'
||
_isctype_l
(
c
,
_BLANK
,
locale
);
#if _MSVCR_VER < 140
if
(
c
==
'\t'
)
return
_BLANK
;
#endif
return
_isctype_l
(
c
,
_BLANK
,
locale
);
}
/*********************************************************************
...
...
dlls/ucrtbase/tests/misc.c
View file @
7a985573
...
...
@@ -538,16 +538,19 @@ static void test_lldiv(void)
static
void
test_isblank
(
void
)
{
int
c
;
int
c
,
r
;
for
(
c
=
0
;
c
<=
0xff
;
c
++
)
{
if
(
c
==
'\t'
||
c
==
' '
)
{
if
(
c
==
'\t'
)
if
(
c
==
'\t'
)
{
ok
(
!
_isctype
(
c
,
_BLANK
),
"tab shouldn't be blank
\n
"
);
else
ok
(
isblank
(
c
),
"%d should be blank
\n
"
,
c
);
r
=
_isblank_l
(
c
,
NULL
);
ok
(
!
r
||
broken
(
r
==
_BLANK
),
"tab shouldn't be blank (got %x)
\n
"
,
r
);
}
else
if
(
c
==
' '
)
{
ok
(
_isctype
(
c
,
_BLANK
),
"space should be blank
\n
"
);
ok
(
isblank
(
c
),
"%d should be blank
\n
"
,
c
);
ok
(
_isblank_l
(
c
,
NULL
),
"%d should be blank
\n
"
,
c
);
r
=
_isblank_l
(
c
,
NULL
);
ok
(
r
==
_BLANK
,
"space should be blank (got %x)
\n
"
,
r
);
}
else
{
ok
(
!
_isctype
(
c
,
_BLANK
),
"%d shouldn't be blank
\n
"
,
c
);
ok
(
!
isblank
(
c
),
"%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