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
dbff7a1c
Commit
dbff7a1c
authored
Dec 06, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
Dec 06, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Fix lc_collate_cp initialization.
parent
f84858ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
locale.c
dlls/msvcrt/locale.c
+3
-2
No files found.
dlls/msvcrt/locale.c
View file @
dbff7a1c
...
...
@@ -789,6 +789,8 @@ MSVCRT__locale_t CDECL MSVCRT__create_locale(int category, const char *locale)
MSVCRT__free_locale
(
loc
);
return
NULL
;
}
loc
->
locinfo
->
lc_collate_cp
=
loc
->
locinfo
->
lc_id
[
MSVCRT_LC_COLLATE
].
wCodePage
;
}
else
loc
->
locinfo
->
lc_category
[
MSVCRT_LC_COLLATE
].
locale
=
MSVCRT__strdup
(
"C"
);
...
...
@@ -802,7 +804,6 @@ MSVCRT__locale_t CDECL MSVCRT__create_locale(int category, const char *locale)
}
loc
->
locinfo
->
lc_codepage
=
loc
->
locinfo
->
lc_id
[
MSVCRT_LC_CTYPE
].
wCodePage
;
loc
->
locinfo
->
lc_collate_cp
=
loc
->
locinfo
->
lc_codepage
;
loc
->
locinfo
->
lc_clike
=
1
;
if
(
!
GetCPInfo
(
loc
->
locinfo
->
lc_codepage
,
&
cp
))
{
MSVCRT__free_locale
(
loc
);
...
...
@@ -1155,6 +1156,7 @@ char* CDECL MSVCRT_setlocale(int category, const char* locale)
switch
(
category
)
{
case
MSVCRT_LC_ALL
:
case
MSVCRT_LC_COLLATE
:
locinfo
->
lc_collate_cp
=
loc
->
locinfo
->
lc_collate_cp
;
locinfo
->
lc_handle
[
MSVCRT_LC_COLLATE
]
=
loc
->
locinfo
->
lc_handle
[
MSVCRT_LC_COLLATE
];
swap_pointers
((
void
**
)
&
locinfo
->
lc_category
[
MSVCRT_LC_COLLATE
].
locale
,
...
...
@@ -1174,7 +1176,6 @@ char* CDECL MSVCRT_setlocale(int category, const char* locale)
(
void
**
)
&
loc
->
locinfo
->
lc_category
[
MSVCRT_LC_CTYPE
].
refcount
);
locinfo
->
lc_codepage
=
loc
->
locinfo
->
lc_codepage
;
locinfo
->
lc_collate_cp
=
loc
->
locinfo
->
lc_collate_cp
;
locinfo
->
lc_clike
=
loc
->
locinfo
->
lc_clike
;
locinfo
->
mb_cur_max
=
loc
->
locinfo
->
mb_cur_max
;
...
...
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