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
9ef9d029
Commit
9ef9d029
authored
Mar 29, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Reimplement LOCALE_*PERCENT in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
17928e6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
locale.c
dlls/kernelbase/locale.c
+5
-4
No files found.
dlls/kernelbase/locale.c
View file @
9ef9d029
...
...
@@ -900,6 +900,7 @@ static int locale_return_strarray( DWORD pos, WORD idx, LCTYPE type, WCHAR *buff
static
int
get_locale_info
(
const
NLS_LOCALE_DATA
*
locale
,
LCID
lcid
,
LCTYPE
type
,
WCHAR
*
buffer
,
int
len
)
{
static
const
WCHAR
spermille
[]
=
{
0x2030
,
0
};
/* this one seems hardcoded */
UINT
val
;
if
(
locale
!=
user_locale
)
type
|=
LOCALE_NOUSEROVERRIDE
;
...
...
@@ -1185,16 +1186,16 @@ static int get_locale_info( const NLS_LOCALE_DATA *locale, LCID lcid, LCTYPE typ
return
locale_return_string
(
locale
->
snativedisplayname
,
type
,
buffer
,
len
);
case
LOCALE_INEGATIVEPERCENT
:
return
-
1
;
return
locale_return_number
(
locale
->
inegativepercent
,
type
,
buffer
,
len
)
;
case
LOCALE_IPOSITIVEPERCENT
:
return
-
1
;
return
locale_return_number
(
locale
->
ipositivepercent
,
type
,
buffer
,
len
)
;
case
LOCALE_SPERCENT
:
return
-
1
;
return
locale_return_string
(
locale
->
spercent
,
type
,
buffer
,
len
)
;
case
LOCALE_SPERMILLE
:
return
-
1
;
return
locale_return_data
(
spermille
,
ARRAY_SIZE
(
spermille
),
type
,
buffer
,
len
)
;
case
LOCALE_SMONTHDAY
:
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