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
e899bd82
Commit
e899bd82
authored
Jan 08, 2015
by
Piotr Caban
Committed by
Alexandre Julliard
Jan 08, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp: Fix setting decimal point and thousands separator in numpunct_wchar__Init.
parent
d5846519
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
20 deletions
+20
-20
locale.c
dlls/msvcp60/locale.c
+10
-10
locale.c
dlls/msvcp90/locale.c
+10
-10
No files found.
dlls/msvcp60/locale.c
View file @
e899bd82
...
@@ -1997,6 +1997,14 @@ int __cdecl _Mbrtowc(wchar_t *out, const char *in, MSVCP_size_t len, int *state,
...
@@ -1997,6 +1997,14 @@ int __cdecl _Mbrtowc(wchar_t *out, const char *in, MSVCP_size_t len, int *state,
return
1
;
return
1
;
}
}
static
inline
wchar_t
mb_to_wc
(
char
ch
,
const
_Cvtvec
*
cvt
)
{
int
state
=
0
;
wchar_t
ret
;
return
_Mbrtowc
(
&
ret
,
&
ch
,
1
,
&
state
,
cvt
)
==
1
?
ret
:
0
;
}
/* ?_Dowiden@?$ctype@_W@std@@IBE_WD@Z */
/* ?_Dowiden@?$ctype@_W@std@@IBE_WD@Z */
/* ?_Dowiden@?$ctype@_W@std@@IEBA_WD@Z */
/* ?_Dowiden@?$ctype@_W@std@@IEBA_WD@Z */
/* ?_Dowiden@?$ctype@G@std@@IBEGD@Z */
/* ?_Dowiden@?$ctype@G@std@@IBEGD@Z */
...
@@ -3454,8 +3462,8 @@ static void numpunct_wchar__Init(numpunct_wchar *this,
...
@@ -3454,8 +3462,8 @@ static void numpunct_wchar__Init(numpunct_wchar *this,
if
(
this
->
grouping
)
if
(
this
->
grouping
)
memcpy
((
char
*
)
this
->
grouping
,
lc
->
grouping
,
len
);
memcpy
((
char
*
)
this
->
grouping
,
lc
->
grouping
,
len
);
this
->
dp
=
lc
->
decimal_point
[
0
]
;
this
->
dp
=
mb_to_wc
(
lc
->
decimal_point
[
0
],
&
cvt
)
;
this
->
sep
=
lc
->
thousands_sep
[
0
]
;
this
->
sep
=
mb_to_wc
(
lc
->
thousands_sep
[
0
],
&
cvt
)
;
}
}
if
(
!
this
->
false_name
||
!
this
->
true_name
||
!
this
->
grouping
)
{
if
(
!
this
->
false_name
||
!
this
->
true_name
||
!
this
->
grouping
)
{
...
@@ -4083,14 +4091,6 @@ num_get* num_get_short_use_facet(const locale *loc)
...
@@ -4083,14 +4091,6 @@ num_get* num_get_short_use_facet(const locale *loc)
return
obj
;
return
obj
;
}
}
static
inline
wchar_t
mb_to_wc
(
char
ch
,
const
_Cvtvec
*
cvt
)
{
int
state
=
0
;
wchar_t
ret
;
return
_Mbrtowc
(
&
ret
,
&
ch
,
1
,
&
state
,
cvt
)
==
1
?
ret
:
0
;
}
static
int
num_get__Getffld
(
const
num_get
*
this
,
char
*
dest
,
istreambuf_iterator_wchar
*
first
,
static
int
num_get__Getffld
(
const
num_get
*
this
,
char
*
dest
,
istreambuf_iterator_wchar
*
first
,
istreambuf_iterator_wchar
*
last
,
const
locale
*
loc
,
numpunct_wchar
*
numpunct
)
istreambuf_iterator_wchar
*
last
,
const
locale
*
loc
,
numpunct_wchar
*
numpunct
)
{
{
...
...
dlls/msvcp90/locale.c
View file @
e899bd82
...
@@ -2394,6 +2394,14 @@ int __cdecl _Mbrtowc(wchar_t *out, const char *in, MSVCP_size_t len, int *state,
...
@@ -2394,6 +2394,14 @@ int __cdecl _Mbrtowc(wchar_t *out, const char *in, MSVCP_size_t len, int *state,
return
1
;
return
1
;
}
}
static
inline
wchar_t
mb_to_wc
(
char
ch
,
const
_Cvtvec
*
cvt
)
{
int
state
=
0
;
wchar_t
ret
;
return
_Mbrtowc
(
&
ret
,
&
ch
,
1
,
&
state
,
cvt
)
==
1
?
ret
:
0
;
}
/* ?_Dowiden@?$ctype@_W@std@@IBE_WD@Z */
/* ?_Dowiden@?$ctype@_W@std@@IBE_WD@Z */
/* ?_Dowiden@?$ctype@_W@std@@IEBA_WD@Z */
/* ?_Dowiden@?$ctype@_W@std@@IEBA_WD@Z */
/* ?_Dowiden@?$ctype@G@std@@IBEGD@Z */
/* ?_Dowiden@?$ctype@G@std@@IBEGD@Z */
...
@@ -4167,8 +4175,8 @@ void __thiscall numpunct_wchar__Init(numpunct_wchar *this,
...
@@ -4167,8 +4175,8 @@ void __thiscall numpunct_wchar__Init(numpunct_wchar *this,
if
(
this
->
grouping
)
if
(
this
->
grouping
)
memcpy
((
char
*
)
this
->
grouping
,
lc
->
grouping
,
len
);
memcpy
((
char
*
)
this
->
grouping
,
lc
->
grouping
,
len
);
this
->
dp
=
lc
->
decimal_point
[
0
]
;
this
->
dp
=
mb_to_wc
(
lc
->
decimal_point
[
0
],
&
cvt
)
;
this
->
sep
=
lc
->
thousands_sep
[
0
]
;
this
->
sep
=
mb_to_wc
(
lc
->
thousands_sep
[
0
],
&
cvt
)
;
}
}
if
(
!
this
->
false_name
||
!
this
->
true_name
||
!
this
->
grouping
)
{
if
(
!
this
->
false_name
||
!
this
->
true_name
||
!
this
->
grouping
)
{
...
@@ -4896,14 +4904,6 @@ num_get* num_get_short_use_facet(const locale *loc)
...
@@ -4896,14 +4904,6 @@ num_get* num_get_short_use_facet(const locale *loc)
return
obj
;
return
obj
;
}
}
static
inline
wchar_t
mb_to_wc
(
char
ch
,
const
_Cvtvec
*
cvt
)
{
int
state
=
0
;
wchar_t
ret
;
return
_Mbrtowc
(
&
ret
,
&
ch
,
1
,
&
state
,
cvt
)
==
1
?
ret
:
0
;
}
static
int
num_get__Getffld
(
const
num_get
*
this
,
char
*
dest
,
istreambuf_iterator_wchar
*
first
,
static
int
num_get__Getffld
(
const
num_get
*
this
,
char
*
dest
,
istreambuf_iterator_wchar
*
first
,
istreambuf_iterator_wchar
*
last
,
const
locale
*
loc
,
numpunct_wchar
*
numpunct
)
istreambuf_iterator_wchar
*
last
,
const
locale
*
loc
,
numpunct_wchar
*
numpunct
)
{
{
...
...
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