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
62cd33e6
Commit
62cd33e6
authored
Mar 29, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Reimplement LOCALE_*CURRNAME/CURRENCY in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
37278557
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
locale.c
dlls/kernelbase/locale.c
+4
-4
vartest.c
dlls/oleaut32/tests/vartest.c
+2
-2
No files found.
dlls/kernelbase/locale.c
View file @
62cd33e6
...
...
@@ -970,10 +970,10 @@ static int get_locale_info( const NLS_LOCALE_DATA *locale, LCID lcid, LCTYPE typ
return
-
1
;
case
LOCALE_SCURRENCY
:
return
-
1
;
return
locale_return_string
(
locale
->
scurrency
,
type
,
buffer
,
len
)
;
case
LOCALE_SINTLSYMBOL
:
return
-
1
;
return
locale_return_string
(
locale
->
sintlsymbol
,
type
,
buffer
,
len
)
;
case
LOCALE_SMONDECIMALSEP
:
return
-
1
;
...
...
@@ -1241,10 +1241,10 @@ static int get_locale_info( const NLS_LOCALE_DATA *locale, LCID lcid, LCTYPE typ
return
-
1
;
case
LOCALE_SENGCURRNAME
:
return
-
1
;
return
locale_return_string
(
locale
->
sengcurrname
,
type
,
buffer
,
len
)
;
case
LOCALE_SNATIVECURRNAME
:
return
-
1
;
return
locale_return_string
(
locale
->
snativecurrname
,
type
,
buffer
,
len
)
;
case
LOCALE_ICALENDARTYPE
:
return
-
1
;
...
...
dlls/oleaut32/tests/vartest.c
View file @
62cd33e6
...
...
@@ -2460,10 +2460,10 @@ static void test_VarParseNumFromStrMisc(void)
lcid
=
MAKELCID
(
MAKELANGID
(
LANG_FRENCH
,
SUBLANG_FRENCH_SWISS
),
SORT_DEFAULT
);
WCONVERT
(
L"3CHF"
,
NUMPRS_CURRENCY
|
NUMPRS_USE_ALL
);
/* Windows <= 8.1 uses an old currency symbol: "fr. 5" */
todo_wine
ok
(
hres
==
S_OK
||
broken
(
hres
==
DISP_E_TYPEMISMATCH
),
"returned %08lx
\n
"
,
hres
);
ok
(
hres
==
S_OK
||
broken
(
hres
==
DISP_E_TYPEMISMATCH
),
"returned %08lx
\n
"
,
hres
);
if
(
hres
==
S_OK
)
{
todo_wine
EXPECT
(
1
,
NUMPRS_CURRENCY
|
NUMPRS_USE_ALL
,
NUMPRS_CURRENCY
,
4
,
0
,
0
);
EXPECT
(
1
,
NUMPRS_CURRENCY
|
NUMPRS_USE_ALL
,
NUMPRS_CURRENCY
,
4
,
0
,
0
);
EXPECT2
(
3
,
FAILDIG
);
}
...
...
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