开发者

Must Windows system locale be system wide?

开发者 https://www.devze.com 2023-03-25 23:33 出处:网络
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 r

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

精彩评论

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

关注公众号