How to set the locale for a process launched by CreateProcess()

Posted by VoidPointer on Stack Overflow See other posts from Stack Overflow or by VoidPointer
Published on 2009-01-07T18:19:48Z Indexed on 2010/05/25 12:41 UTC
Read the original article Hit count: 200

Filed under:
|
|

When launching a process with CreateProcessW(), is it possible to have the process created with a different MBCP locale/codepage then the one that is configured as the system-wide default code page? In the target process, this should have the same effect as calling _setmbcp().

The target process is not a unicode-enabled and uses a plain main(int argc, char **argv) entry point. I would like to be able to select the code page to which unicode arguments passed to CreateProcessW() are converted to be different from the system's default codepage for non-unicode programs.

© Stack Overflow or respective owner

Related posts about c

    Related posts about Windows