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
eee55c35
Commit
eee55c35
authored
Oct 20, 2022
by
Bartosz Kosiorek
Committed by
Alexandre Julliard
Oct 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add _mbclen_l implementation.
parent
beb7f9fa
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
18 additions
and
9 deletions
+18
-9
msvcr100.spec
dlls/msvcr100/msvcr100.spec
+1
-1
msvcr110.spec
dlls/msvcr110/msvcr110.spec
+1
-1
msvcr120.spec
dlls/msvcr120/msvcr120.spec
+1
-1
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+1
-1
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+1
-1
mbcs.c
dlls/msvcrt/mbcs.c
+9
-1
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
string.c
dlls/msvcrt/tests/string.c
+1
-0
ucrtbase.spec
dlls/ucrtbase/ucrtbase.spec
+2
-2
No files found.
dlls/msvcr100/msvcr100.spec
View file @
eee55c35
...
...
@@ -1082,7 +1082,7 @@
@ cdecl _mbcjmstojis(long)
@ stub _mbcjmstojis_l
@ cdecl _mbclen(ptr)
@
stub _mbclen_l
@
cdecl _mbclen_l(ptr ptr)
@ cdecl _mbctohira(long)
@ stub _mbctohira_l
@ cdecl _mbctokata(long)
...
...
dlls/msvcr110/msvcr110.spec
View file @
eee55c35
...
...
@@ -1439,7 +1439,7 @@
@ cdecl _mbcjmstojis(long)
@ stub _mbcjmstojis_l
@ cdecl _mbclen(ptr)
@
stub _mbclen_l
@
cdecl _mbclen_l(ptr ptr)
@ cdecl _mbctohira(long)
@ stub _mbctohira_l
@ cdecl _mbctokata(long)
...
...
dlls/msvcr120/msvcr120.spec
View file @
eee55c35
...
...
@@ -1450,7 +1450,7 @@
@ cdecl _mbcjmstojis(long)
@ stub _mbcjmstojis_l
@ cdecl _mbclen(ptr)
@
stub _mbclen_l
@
cdecl _mbclen_l(ptr ptr)
@ cdecl _mbctohira(long)
@ stub _mbctohira_l
@ cdecl _mbctokata(long)
...
...
dlls/msvcr80/msvcr80.spec
View file @
eee55c35
...
...
@@ -754,7 +754,7 @@
@ cdecl _mbcjmstojis(long)
@ stub _mbcjmstojis_l
@ cdecl _mbclen(ptr)
@
stub _mbclen_l
@
cdecl _mbclen_l(ptr ptr)
@ cdecl _mbctohira(long)
@ stub _mbctohira_l
@ cdecl _mbctokata(long)
...
...
dlls/msvcr90/msvcr90.spec
View file @
eee55c35
...
...
@@ -732,7 +732,7 @@
@ cdecl _mbcjmstojis(long)
@ stub _mbcjmstojis_l
@ cdecl _mbclen(ptr)
@
stub _mbclen_l
@
cdecl _mbclen_l(ptr ptr)
@ cdecl _mbctohira(long)
@ stub _mbctohira_l
@ cdecl _mbctokata(long)
...
...
dlls/msvcrt/mbcs.c
View file @
eee55c35
...
...
@@ -644,11 +644,19 @@ unsigned char* CDECL _mbsdec(const unsigned char* start, const unsigned char* cu
}
/*********************************************************************
* _mbclen_l(MSVCRT.@)
*/
size_t
CDECL
_mbclen_l
(
const
unsigned
char
*
str
,
_locale_t
locale
)
{
return
_ismbblead_l
(
*
str
,
locale
)
&&
str
[
1
]
?
2
:
1
;
}
/*********************************************************************
* _mbclen(MSVCRT.@)
*/
size_t
CDECL
_mbclen
(
const
unsigned
char
*
str
)
{
return
_ismbblead
(
*
str
)
?
2
:
1
;
return
_mbclen_l
(
str
,
NULL
)
;
}
/*********************************************************************
...
...
dlls/msvcrt/msvcrt.spec
View file @
eee55c35
...
...
@@ -699,7 +699,7 @@
@ cdecl _mbcjmstojis(long)
# stub _mbcjmstojis_l(long ptr)
@ cdecl _mbclen(ptr)
# stub
_mbclen_l(ptr ptr)
@ cdecl
_mbclen_l(ptr ptr)
@ cdecl _mbctohira(long)
# stub _mbctohira_l(long ptr)
@ cdecl _mbctokata(long)
...
...
dlls/msvcrt/tests/string.c
View file @
eee55c35
...
...
@@ -366,6 +366,7 @@ static void test_mbcp(void)
expect_eq
(
_mbclen
(
mbstring
),
2
,
int
,
"%d"
);
expect_eq
(
_mbclen
(
&
mbstring
[
2
]),
2
,
int
,
"%d"
);
expect_eq
(
_mbclen
(
&
mbstring
[
3
]),
1
,
int
,
"%d"
);
expect_eq
(
_mbclen
(
mbsonlylead
),
1
,
int
,
"%d"
);
expect_eq
(
_mbslen
(
mbstring2
),
4
,
int
,
"%d"
);
expect_eq
(
_mbslen
(
mbsonlylead
),
0
,
int
,
"%d"
);
/* lead + NUL not counted as character */
expect_eq
(
_mbslen
(
mbstring
),
4
,
int
,
"%d"
);
/* lead + invalid trail counted */
...
...
dlls/ucrtbase/ucrtbase.spec
View file @
eee55c35
...
...
@@ -597,7 +597,7 @@
@ cdecl _mbcjmstojis(long)
@ stub _mbcjmstojis_l
@ cdecl _mbclen(ptr)
@
stub _mbclen_l
@
cdecl _mbclen_l(ptr ptr)
@ cdecl _mbctohira(long)
@ stub _mbctohira_l
@ cdecl _mbctokata(long)
...
...
@@ -1167,7 +1167,7 @@
@ cdecl _o__mbcjmstojis(long) _mbcjmstojis
@ stub _o__mbcjmstojis_l
@ cdecl _o__mbclen(ptr) _mbclen
@
stub _o_
_mbclen_l
@
cdecl _o__mbclen_l(ptr ptr)
_mbclen_l
@ cdecl _o__mbctohira(long) _mbctohira
@ stub _o__mbctohira_l
@ cdecl _o__mbctokata(long) _mbctokata
...
...
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