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
2b9d946a
Commit
2b9d946a
authored
Jun 03, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
Jun 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Fix pclmap and pcumap for "C" locale.
parent
f9de4eef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
locale.c
dlls/msvcrt/locale.c
+11
-4
No files found.
dlls/msvcrt/locale.c
View file @
2b9d946a
...
...
@@ -826,10 +826,17 @@ MSVCRT__locale_t MSVCRT__create_locale(int category, const char *locale)
}
LCMapStringA
(
lcid
[
MSVCRT_LC_CTYPE
],
LCMAP_LOWERCASE
,
buf
,
256
,
(
char
*
)
loc
->
locinfo
->
pclmap
,
256
);
LCMapStringA
(
lcid
[
MSVCRT_LC_CTYPE
],
LCMAP_UPPERCASE
,
buf
,
256
,
(
char
*
)
loc
->
locinfo
->
pcumap
,
256
);
if
(
lcid
[
MSVCRT_LC_CTYPE
])
{
LCMapStringA
(
lcid
[
MSVCRT_LC_CTYPE
],
LCMAP_LOWERCASE
,
buf
,
256
,
(
char
*
)
loc
->
locinfo
->
pclmap
,
256
);
LCMapStringA
(
lcid
[
MSVCRT_LC_CTYPE
],
LCMAP_UPPERCASE
,
buf
,
256
,
(
char
*
)
loc
->
locinfo
->
pcumap
,
256
);
}
else
{
for
(
i
=
0
;
i
<
256
;
i
++
)
{
loc
->
locinfo
->
pclmap
[
i
]
=
(
i
>=
'A'
&&
i
<=
'Z'
?
i
-
'A'
+
'a'
:
i
);
loc
->
locinfo
->
pcumap
[
i
]
=
(
i
>=
'a'
&&
i
<=
'z'
?
i
-
'a'
+
'A'
:
i
);
}
}
loc
->
mbcinfo
->
refcount
=
1
;
loc
->
mbcinfo
->
mbcodepage
=
loc
->
locinfo
->
lc_id
[
MSVCRT_LC_CTYPE
].
wCodePage
;
...
...
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