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
30e8a28c
Commit
30e8a28c
authored
Mar 29, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Reimplement date/time format strings in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ec5d3c9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
locale.c
dlls/kernelbase/locale.c
+8
-8
No files found.
dlls/kernelbase/locale.c
View file @
30e8a28c
...
...
@@ -1030,10 +1030,10 @@ static int get_locale_info( const NLS_LOCALE_DATA *locale, LCID lcid, LCTYPE typ
return
-
1
;
case
LOCALE_SSHORTDATE
:
return
-
1
;
return
locale_return_strarray
(
locale
->
sshortdate
,
0
,
type
,
buffer
,
len
)
;
case
LOCALE_SLONGDATE
:
return
-
1
;
return
locale_return_strarray
(
locale
->
slongdate
,
0
,
type
,
buffer
,
len
)
;
case
LOCALE_IDATE
:
return
-
1
;
...
...
@@ -1159,7 +1159,7 @@ static int get_locale_info( const NLS_LOCALE_DATA *locale, LCID lcid, LCTYPE typ
return
locale_return_string
(
locale
->
sname
,
type
,
buffer
,
len
);
case
LOCALE_SDURATION
:
return
-
1
;
return
locale_return_strarray
(
locale
->
sduration
,
0
,
type
,
buffer
,
len
)
;
case
LOCALE_SKEYBOARDSTOINSTALL
:
return
-
1
;
...
...
@@ -1227,10 +1227,10 @@ static int get_locale_info( const NLS_LOCALE_DATA *locale, LCID lcid, LCTYPE typ
return
locale_return_data
(
spermille
,
ARRAY_SIZE
(
spermille
),
type
,
buffer
,
len
);
case
LOCALE_SMONTHDAY
:
return
-
1
;
return
locale_return_strarray
(
locale
->
smonthday
,
0
,
type
,
buffer
,
len
)
;
case
LOCALE_SSHORTTIME
:
return
-
1
;
return
locale_return_strarray
(
locale
->
sshorttime
,
0
,
type
,
buffer
,
len
)
;
case
LOCALE_SOPENTYPELANGUAGETAG
:
return
-
1
;
...
...
@@ -1239,7 +1239,7 @@ static int get_locale_info( const NLS_LOCALE_DATA *locale, LCID lcid, LCTYPE typ
return
-
1
;
case
LOCALE_SRELATIVELONGDATE
:
return
-
1
;
return
locale_return_string
(
locale
->
srelativelongdate
,
type
,
buffer
,
len
)
;
case
0x007d
:
/* undocumented */
return
-
1
;
...
...
@@ -1257,7 +1257,7 @@ static int get_locale_info( const NLS_LOCALE_DATA *locale, LCID lcid, LCTYPE typ
return
locale_return_string
(
locale
->
sengcountry
,
type
,
buffer
,
len
);
case
LOCALE_STIMEFORMAT
:
return
-
1
;
return
locale_return_strarray
(
locale
->
stimeformat
,
0
,
type
,
buffer
,
len
)
;
case
LOCALE_IDEFAULTANSICODEPAGE
:
val
=
locale
->
idefaultansicodepage
==
CP_UTF8
?
CP_ACP
:
locale
->
idefaultansicodepage
;
...
...
@@ -1267,7 +1267,7 @@ static int get_locale_info( const NLS_LOCALE_DATA *locale, LCID lcid, LCTYPE typ
return
-
1
;
case
LOCALE_SYEARMONTH
:
return
-
1
;
return
locale_return_strarray
(
locale
->
syearmonth
,
0
,
type
,
buffer
,
len
)
;
case
LOCALE_SENGCURRNAME
:
return
locale_return_string
(
locale
->
sengcurrname
,
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