From f0af162aa3f5c887d380c1032812e6deb49b7294 Mon Sep 17 00:00:00 2001 From: Rein Klazes Date: Mon, 21 Nov 2005 13:34:37 +0000 Subject: [PATCH] Fix bogus unreal code page messages in _setmbcp(). --- dlls/msvcrt/locale.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/dlls/msvcrt/locale.c b/dlls/msvcrt/locale.c index f5260dbc9bc..d62ae1d483f 100644 --- a/dlls/msvcrt/locale.c +++ b/dlls/msvcrt/locale.c @@ -519,10 +519,11 @@ const char* _Strftime(char *out, unsigned int len, const char *fmt, int _setmbcp(int cp) { LOCK_LOCALE; - if ((msvcrt_current_lc_all_cp != cp) && (cp > _MB_CP_SBCS)) + if ( cp > _MB_CP_SBCS) { - /* FIXME: set ctype behaviour for this cp */ - msvcrt_current_lc_all_cp = cp; + if( msvcrt_current_lc_all_cp != cp) + /* FIXME: set ctype behaviour for this cp */ + msvcrt_current_lc_all_cp = cp; } else if(cp == _MB_CP_ANSI) { @@ -539,13 +540,14 @@ int _setmbcp(int cp) } else if(cp == _MB_CP_SBCS) { - FIXME ("SBCS codepages (e.g. %d) not implemented\n", cp); + FIXME ("SBCS codepages not implemented\n"); } else { FIXME ("Unreal codepages (e.g. %d) not implemented\n", cp); } UNLOCK_LOCALE; + TRACE("(%d) -> %d\n", cp, msvcrt_current_lc_all_cp); return 0; } -- 2.11.4.GIT