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
5fcc3771
Commit
5fcc3771
authored
Oct 19, 2020
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ucrtbase: Support UTF8 codepage in wctomb.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
69b701a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
wcs.c
dlls/msvcrt/wcs.c
+5
-2
No files found.
dlls/msvcrt/wcs.c
View file @
5fcc3771
...
...
@@ -1996,15 +1996,18 @@ INT CDECL MSVCRT_wctomb( char *dst, MSVCRT_wchar_t ch )
INT
CDECL
MSVCRT_wctob
(
MSVCRT_wint_t
wchar
)
{
char
out
;
BOOL
error
;
BOOL
error
=
FALSE
;
BOOL
*
perror
;
UINT
codepage
=
get_locinfo
()
->
lc_codepage
;
perror
=
(
codepage
!=
CP_UTF8
?
&
error
:
NULL
);
if
(
!
codepage
)
{
if
(
wchar
<
0xff
)
return
(
signed
char
)
wchar
;
else
return
MSVCRT_EOF
;
}
else
if
(
WideCharToMultiByte
(
codepage
,
0
,
&
wchar
,
1
,
&
out
,
1
,
NULL
,
&
error
)
&&
!
error
)
}
else
if
(
WideCharToMultiByte
(
codepage
,
0
,
&
wchar
,
1
,
&
out
,
1
,
NULL
,
p
error
)
&&
!
error
)
return
(
INT
)
out
;
return
MSVCRT_EOF
;
}
...
...
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