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
b1e17a05
Commit
b1e17a05
authored
Mar 28, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Reimplement LOCALE_*DEFAULTCODEPAGE in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f0db567f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
locale.c
dlls/kernelbase/locale.c
+7
-4
No files found.
dlls/kernelbase/locale.c
View file @
b1e17a05
...
...
@@ -932,7 +932,8 @@ static int get_locale_info( const NLS_LOCALE_DATA *locale, LCID lcid, LCTYPE typ
return
-
1
;
case
LOCALE_IDEFAULTCODEPAGE
:
return
-
1
;
val
=
locale
->
idefaultcodepage
==
CP_UTF8
?
CP_OEMCP
:
locale
->
idefaultcodepage
;
return
locale_return_number
(
val
,
type
,
buffer
,
len
);
case
LOCALE_SLIST
:
return
-
1
;
...
...
@@ -1213,7 +1214,8 @@ static int get_locale_info( const NLS_LOCALE_DATA *locale, LCID lcid, LCTYPE typ
return
-
1
;
case
LOCALE_IDEFAULTANSICODEPAGE
:
return
-
1
;
val
=
locale
->
idefaultansicodepage
==
CP_UTF8
?
CP_ACP
:
locale
->
idefaultansicodepage
;
return
locale_return_number
(
val
,
type
,
buffer
,
len
);
case
LOCALE_ITIMEMARKPOSN
:
return
-
1
;
...
...
@@ -1252,10 +1254,11 @@ static int get_locale_info( const NLS_LOCALE_DATA *locale, LCID lcid, LCTYPE typ
return
-
1
;
case
LOCALE_IDEFAULTMACCODEPAGE
:
return
-
1
;
val
=
locale
->
idefaultmaccodepage
==
CP_UTF8
?
CP_MACCP
:
locale
->
idefaultmaccodepage
;
return
locale_return_number
(
val
,
type
,
buffer
,
len
);
case
LOCALE_IDEFAULTEBCDICCODEPAGE
:
return
-
1
;
return
locale_return_number
(
locale
->
idefaultebcdiccodepage
,
type
,
buffer
,
len
)
;
case
LOCALE_SSORTNAME
:
return
-
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