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
2ea15a56
Commit
2ea15a56
authored
Nov 21, 2004
by
Bill Medland
Committed by
Alexandre Julliard
Nov 21, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't mess up the msvcrt codepage on e.g. _MB_CP_ANSI.
parent
f81b6517
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
locale.c
dlls/msvcrt/locale.c
+7
-1
No files found.
dlls/msvcrt/locale.c
View file @
2ea15a56
...
...
@@ -515,8 +515,13 @@ const char* _Strftime(char *out, unsigned int len, const char *fmt,
/*********************************************************************
* _setmbcp (MSVCRT.@)
*/
void
_setmbcp
(
int
cp
)
int
_setmbcp
(
int
cp
)
{
if
(
cp
<
0
)
{
FIXME
(
"Unreal codepages (e.g. %d) not implemented
\n
"
,
cp
);
return
0
;
/* Let's not confuse the caller by returning -1 */
}
LOCK_LOCALE
;
if
(
msvcrt_current_lc_all_cp
!=
cp
)
{
...
...
@@ -524,6 +529,7 @@ void _setmbcp(int cp)
msvcrt_current_lc_all_cp
=
cp
;
}
UNLOCK_LOCALE
;
return
0
;
}
/*********************************************************************
...
...
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