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
bf2e66cc
Commit
bf2e66cc
authored
Aug 06, 2021
by
Francois Gouget
Committed by
Alexandre Julliard
Aug 06, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: The decimal point takes priority over the thousands separator.
Signed-off-by:
Francois Gouget
<
fgouget@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c909e69f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
vartest.c
dlls/oleaut32/tests/vartest.c
+3
-6
variant.c
dlls/oleaut32/variant.c
+3
-0
No files found.
dlls/oleaut32/tests/vartest.c
View file @
bf2e66cc
...
...
@@ -2313,17 +2313,14 @@ static void test_VarParseNumFromStrMisc(void)
SetLocaleInfoW
(
LOCALE_USER_DEFAULT
,
LOCALE_SMONDECIMALSEP
,
L"~"
);
hres
=
wconvert_str
(
L",1"
,
ARRAY_SIZE
(
rgb
),
NUMPRS_THOUSANDS
|
NUMPRS_DECIMAL
,
&
np
,
rgb
,
LOCALE_USER_DEFAULT
,
0
);
todo_wine
EXPECT
(
1
,
NUMPRS_THOUSANDS
|
NUMPRS_DECIMAL
,
NUMPRS_DECIMAL
,
2
,
0
,
-
1
);
todo_wine
EXPECTRGB
(
0
,
1
);
EXPECTRGB
(
1
,
FAILDIG
);
EXPECT
(
1
,
NUMPRS_THOUSANDS
|
NUMPRS_DECIMAL
,
NUMPRS_DECIMAL
,
2
,
0
,
-
1
);
EXPECT2
(
1
,
FAILDIG
);
hres
=
wconvert_str
(
L"1,000"
,
ARRAY_SIZE
(
rgb
),
NUMPRS_THOUSANDS
|
NUMPRS_USE_ALL
,
&
np
,
rgb
,
LOCALE_USER_DEFAULT
,
0
);
todo_wine
EXPECTFAIL
;
EXPECTFAIL
;
hres
=
wconvert_str
(
L"1,"
,
ARRAY_SIZE
(
rgb
),
NUMPRS_THOUSANDS
|
NUMPRS_DECIMAL
|
NUMPRS_USE_ALL
,
&
np
,
rgb
,
LOCALE_USER_DEFAULT
,
0
);
if
(
broken
(
1
))
/* FIXME Reenable once Wine is less broken */
EXPECT
(
1
,
NUMPRS_THOUSANDS
|
NUMPRS_DECIMAL
|
NUMPRS_USE_ALL
,
NUMPRS_DECIMAL
,
2
,
0
,
0
);
todo_wine
ok
(
np
.
dwOutFlags
==
NUMPRS_DECIMAL
,
"Got dwOutFlags=%08x
\n
"
,
np
.
dwOutFlags
);
EXPECT2
(
1
,
FAILDIG
);
/* But not for their monetary equivalents */
...
...
dlls/oleaut32/variant.c
View file @
bf2e66cc
...
...
@@ -1607,6 +1607,9 @@ HRESULT WINAPI VarParseNumFromStr(const OLECHAR *lpszStr, LCID lcid, ULONG dwFla
return
DISP_E_TYPEMISMATCH
;
VARIANT_GetLocalisedNumberChars
(
&
chars
,
lcid
,
dwFlags
);
if
(
chars
.
cDigitSeparator
==
chars
.
cDecimalPoint
)
/* The decimal point completely masks the digit separator */
chars
.
cDigitSeparator
=
0
;
/* Setting the thousands separator to a non-breaking space implies regular
* spaces are allowed too. But the converse is not true.
*/
...
...
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