Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
08a9dc50
Commit
08a9dc50
authored
Mar 29, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Reimplement misc locale info values in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
07cbbdea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
locale.c
dlls/kernelbase/locale.c
+10
-5
No files found.
dlls/kernelbase/locale.c
View file @
08a9dc50
...
...
@@ -1276,7 +1276,7 @@ static int get_locale_info( const NLS_LOCALE_DATA *locale, LCID lcid, LCTYPE typ
return
locale_return_strarray
(
locale
->
sduration
,
0
,
type
,
buffer
,
len
);
case
LOCALE_SKEYBOARDSTOINSTALL
:
return
-
1
;
return
locale_return_string
(
locale
->
skeyboardstoinstall
,
type
,
buffer
,
len
)
;
case
LOCALE_SSHORTESTDAYNAME1
:
case
LOCALE_SSHORTESTDAYNAME2
:
...
...
@@ -1304,13 +1304,13 @@ static int get_locale_info( const NLS_LOCALE_DATA *locale, LCID lcid, LCTYPE typ
return
locale_return_string
(
locale
->
sneginfinity
,
type
,
buffer
,
len
);
case
LOCALE_SSCRIPTS
:
return
-
1
;
return
locale_return_string
(
locale
->
sscripts
,
type
,
buffer
,
len
)
;
case
LOCALE_SPARENT
:
return
locale_return_string
(
locale
->
sparent
,
type
,
buffer
,
len
);
case
LOCALE_SCONSOLEFALLBACKNAME
:
return
-
1
;
return
locale_return_string
(
locale
->
sconsolefallbackname
,
type
,
buffer
,
len
)
;
case
LOCALE_SLOCALIZEDLANGUAGENAME
:
/* FIXME: localization */
...
...
@@ -1320,7 +1320,7 @@ static int get_locale_info( const NLS_LOCALE_DATA *locale, LCID lcid, LCTYPE typ
return
locale_return_number
(
locale
->
ireadinglayout
,
type
,
buffer
,
len
);
case
LOCALE_INEUTRAL
:
return
-
1
;
return
locale_return_number
(
!
locale
->
inotneutral
,
type
,
buffer
,
len
)
;
case
LOCALE_SENGLISHDISPLAYNAME
:
return
locale_return_string
(
locale
->
sengdisplayname
,
type
,
buffer
,
len
);
...
...
@@ -1350,7 +1350,12 @@ static int get_locale_info( const NLS_LOCALE_DATA *locale, LCID lcid, LCTYPE typ
return
locale_return_string
(
locale
->
sopentypelanguagetag
,
type
,
buffer
,
len
);
case
LOCALE_SSORTLOCALE
:
return
-
1
;
if
(
SORTIDFROMLCID
(
lcid
))
/* custom sort locale */
{
const
NLS_LOCALE_LCID_INDEX
*
entry
=
find_lcid_entry
(
lcid
&
~
0x80000000
);
if
(
entry
)
return
locale_return_string
(
entry
->
name
,
type
,
buffer
,
len
);
}
return
locale_return_string
(
locale
->
ssortlocale
,
type
,
buffer
,
len
);
case
LOCALE_SRELATIVELONGDATE
:
return
locale_return_string
(
locale
->
srelativelongdate
,
type
,
buffer
,
len
);
...
...
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