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
c0ce611e
Commit
c0ce611e
authored
Nov 29, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Nov 30, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Added wcrtomb implementation.
parent
027ef4cc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
wcs.c
dlls/msvcrt/wcs.c
+19
-1
No files found.
dlls/msvcrt/msvcrt.spec
View file @
c0ce611e
...
...
@@ -1445,7 +1445,7 @@
@ cdecl vswprintf_s(ptr long wstr ptr) MSVCRT_vswprintf_s
@ cdecl vwprintf(wstr ptr) MSVCRT_vwprintf
@ cdecl vwprintf_s(wstr ptr) MSVCRT_vwprintf_s
# stub wcrtomb(ptr long ptr)
@ cdecl wcrtomb(ptr long ptr) MSVCRT_wcrtomb
# stub wcrtomb_s(ptr ptr long long ptr)
@ cdecl wcscat(wstr wstr) ntdll.wcscat
@ cdecl wcscat_s(wstr long wstr) MSVCRT_wcscat_s
...
...
dlls/msvcrt/wcs.c
View file @
c0ce611e
...
...
@@ -1083,7 +1083,25 @@ INT CDECL MSVCRT_wctob( MSVCRT_wint_t wchar )
*/
INT
CDECL
MSVCRT_wctomb
(
char
*
dst
,
MSVCRT_wchar_t
ch
)
{
return
WideCharToMultiByte
(
get_locinfo
()
->
lc_codepage
,
0
,
&
ch
,
1
,
dst
,
6
,
NULL
,
NULL
);
BOOL
error
;
INT
size
;
size
=
WideCharToMultiByte
(
get_locinfo
()
->
lc_codepage
,
0
,
&
ch
,
1
,
dst
,
dst
?
6
:
0
,
NULL
,
&
error
);
if
(
!
size
||
error
)
{
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
return
MSVCRT_EOF
;
}
return
size
;
}
/*********************************************************************
* wcrtomb (MSVCRT.@)
*/
MSVCRT_size_t
CDECL
MSVCRT_wcrtomb
(
char
*
dst
,
MSVCRT_wchar_t
ch
,
MSVCRT_mbstate_t
*
s
)
{
if
(
s
)
*
s
=
0
;
return
MSVCRT_wctomb
(
dst
,
ch
);
}
/*********************************************************************
...
...
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