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
8d94d192
Commit
8d94d192
authored
Feb 07, 2004
by
Bill Medland
Committed by
Alexandre Julliard
Feb 07, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct GetNumberFormat for negative numbers with e.g. 3 leading
digits.
parent
e7499dc2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
lcformat.c
dlls/kernel/lcformat.c
+1
-1
locale.c
dlls/kernel/tests/locale.c
+4
-0
No files found.
dlls/kernel/lcformat.c
View file @
8d94d192
...
...
@@ -1134,7 +1134,7 @@ GetNumberFormatW_Error:
dwState
|=
NF_DIGITS_OUT
;
dwCurrentGroupCount
++
;
if
(
szSrc
>=
lpszValue
&&
dwCurrentGroupCount
==
dwGroupCount
)
if
(
szSrc
>=
lpszValue
&&
dwCurrentGroupCount
==
dwGroupCount
&&
*
szSrc
!=
'-'
)
{
LPWSTR
lpszGrp
=
lpFormat
->
lpThousandSep
+
strlenW
(
lpFormat
->
lpThousandSep
)
-
1
;
...
...
dlls/kernel/tests/locale.c
View file @
8d94d192
...
...
@@ -660,6 +660,10 @@ static void test_GetNumberFormatA()
ret
=
GetNumberFormatA
(
lcid
,
NUO
,
input
,
NULL
,
buffer
,
COUNTOF
(
buffer
));
EXPECT_VALID
;
EXPECT_LENA
;
EXPECT_EQA
;
STRINGSA
(
"-353"
,
"-353.00"
);
/* test for off by one error in grouping */
ret
=
GetNumberFormatA
(
lcid
,
NUO
,
input
,
NULL
,
buffer
,
COUNTOF
(
buffer
));
EXPECT_VALID
;
EXPECT_LENA
;
EXPECT_EQA
;
STRINGSA
(
"2353.1"
,
"2,353.10"
);
/* Valid real number */
ret
=
GetNumberFormatA
(
lcid
,
NUO
,
input
,
NULL
,
buffer
,
COUNTOF
(
buffer
));
EXPECT_VALID
;
EXPECT_LENA
;
EXPECT_EQA
;
...
...
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