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
e460b37a
Commit
e460b37a
authored
Nov 11, 2020
by
Piotr Caban
Committed by
Alexandre Julliard
Nov 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ucrtbase: Add support for utf8 codepage in setlocale.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8ea89841
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
locale.c
dlls/msvcrt/locale.c
+5
-0
No files found.
dlls/msvcrt/locale.c
View file @
e460b37a
...
...
@@ -351,6 +351,11 @@ LCID MSVCRT_locale_to_LCID(const char *locale, unsigned short *codepage, BOOL *s
}
else
if
(
!
MSVCRT__strnicmp
(
cp
,
".OCP"
,
4
))
{
GetLocaleInfoW
(
lcid
,
LOCALE_IDEFAULTCODEPAGE
|
LOCALE_RETURN_NUMBER
,
(
WCHAR
*
)
&
locale_cp
,
sizeof
(
DWORD
)
/
sizeof
(
WCHAR
));
#if _MSVCR_VER >= 140
}
else
if
(
!
MSVCRT__strnicmp
(
cp
,
".UTF-8"
,
6
)
||
!
MSVCRT__strnicmp
(
cp
,
".UTF8"
,
5
))
{
locale_cp
=
CP_UTF8
;
#endif
}
else
{
locale_cp
=
atoi
(
cp
+
1
);
}
...
...
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