开发者

Must Windows system locale be system wide?

hello, all. Must Windows syst开发者_如何学Cem locale(or say, system codepage, 1252, 936, 950 etc) be system wide? You know, in Windows 2000 ~ Windows 7, changing the system codepage in Control Panel requires a reboot to take effect.

I'd like to know whether I can have per-logon-session locale setting or even per-process locale setting? That will ease debugging program running with different locale.

BTW: I found GetCPInfo() Win32 API but no corresponding SetCPInfo, sigh.


Yes, the system locale is the whole system, but users and processes/threads can change their own locale. The thread local can be set using SetThreadLocale(). Anything else is not in the remit of your program to change.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜