_setmbcp giving error for codepage -3

Vijay Kiran Kamuju infyquest at gmail.com
Thu Jul 7 08:12:33 CDT 2005


ansi charset for windows can be found at (it is cp1252)
http://www.kostis.net/charsets/cp1252.htm

the cygwin implemenataion is at
http://www.cygwin.com/ml/cygwin-patches/2000-q4/msg00025.html


On 7/7/05, Vijay Kiran Kamuju <infyquest at gmail.com> wrote:
> Hi,
> 
> according to http://msdn2.microsoft.com/library/883tf19a(en-us,vs.80).aspx
> or msdn.microsoft.com/library/ en-us/vccore98/HTML/_crt__setmbcp.asp
> 
> it should not get errored out for _MB_CP_ANSI which is actually
> defined in mbctype.h
> the value's are
> 
> /* _setmbcp parameter defines */
> #define _MB_CP_SBCS     0
> #define _MB_CP_OEM      -2
> #define _MB_CP_ANSI     -3
> #define _MB_CP_LOCALE   -4
> 
> so it should not get erroed out for code page of -3
> 
> and also i think that we should add mbctype.h to the include.
> If u agree i would like to write it or anyone can do it.
> 
> Thanks,
> Vijay
>




More information about the wine-devel mailing list