Windows操作系统的设置 与 C语言setlocale函数
[解决办法]
推荐使用软件SoftSnoop获取某进程调用了哪些Win API。
[解决办法]
你用 LC_ALL 只是这些设置中的一个, 设置成不同的值来看看吧, LC_CTYPE 应该会是 “系统区域设置” 里的值.
LC_ALL
All categories, as listed below.
LC_COLLATE
The strcoll, _stricoll, wcscoll, _wcsicoll, strxfrm, _strncoll, _strnicoll, _wcsncoll, _wcsnicoll, and wcsxfrm functions.
LC_CTYPE
The character-handling functions (except isdigit, isxdigit, mbstowcs, and mbtowc, which are unaffected).
LC_MONETARY
Monetary-formatting information returned by the localeconv function.
LC_NUMERIC
Decimal-point character for the formatted output routines (such as printf), for the data-conversion routines, and for the non-monetary formatting information returned by localeconv. In addition to the decimal-point character, LC_NUMERIC also sets the thousands separator and the grouping control string returned by localeconv.
LC_TIME
The strftime and wcsftime functions.
“系统区域设置” 会影响 WideCharToMultiByte 和 MultiByteToWideChar 这两个 API.