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
f58eed36
Commit
f58eed36
authored
Jul 11, 2005
by
Vijay Kiran Kamuju
Committed by
Alexandre Julliard
Jul 11, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix _setmbcp behavior for unreal codepages.
parent
5ad90c0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
6 deletions
+23
-6
locale.c
dlls/msvcrt/locale.c
+23
-6
No files found.
dlls/msvcrt/locale.c
View file @
f58eed36
...
...
@@ -31,6 +31,7 @@
#include "msvcrt.h"
#include "mtdll.h"
#include "msvcrt/mbctype.h"
#include "wine/debug.h"
...
...
@@ -517,17 +518,33 @@ const char* _Strftime(char *out, unsigned int len, const char *fmt,
*/
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
)
if
(
(
msvcrt_current_lc_all_cp
!=
cp
)
&&
(
cp
>
_MB_CP_SBCS
)
)
{
/* FIXME: set ctype behaviour for this cp */
msvcrt_current_lc_all_cp
=
cp
;
}
else
if
(
cp
==
_MB_CP_ANSI
)
{
msvcrt_current_lc_all_cp
=
GetACP
();
}
else
if
(
cp
==
_MB_CP_OEM
)
{
msvcrt_current_lc_all_cp
=
GetOEMCP
();
}
else
if
(
cp
==
_MB_CP_LOCALE
)
{
GetLocaleInfoW
(
GetUserDefaultLCID
(),
LOCALE_IDEFAULTANSICODEPAGE
|
LOCALE_RETURN_NUMBER
,
(
WCHAR
*
)
&
msvcrt_current_lc_all_cp
,
sizeof
(
INT
)
/
sizeof
(
WCHAR
)
);
}
else
if
(
cp
==
_MB_CP_SBCS
)
{
FIXME
(
"SBCS codepages (e.g. %d) not implemented
\n
"
,
cp
);
}
else
{
FIXME
(
"Unreal codepages (e.g. %d) not implemented
\n
"
,
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