Skip to content

_configthreadlocale affects _setmbcp #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 17, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/c-runtime-library/reference/configthreadlocale.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ int _configthreadlocale(
`0`
Retrieves the current setting for this particular thread.

These functions affect the behavior of `setlocale`, `_tsetlocale`, and `_wsetlocale`. When per-thread locale is disabled, any subsequent call to `setlocale` or `_wsetlocale` changes the locale of all threads that use the global locale. When per-thread locale is enabled, `setlocale` or `_wsetlocale` only affects the current thread's locale.
These functions affect the behavior of `setlocale`, `_tsetlocale`, `_wsetlocale`, and `_setmbcp`. When per-thread locale is disabled, any subsequent call to `setlocale` or `_wsetlocale` changes the locale of all threads that use the global locale. When per-thread locale is enabled, `setlocale` or `_wsetlocale` only affects the current thread's locale.

If you use `_configurethreadlocale` to enable a per-thread locale, we recommend that you call `setlocale` or `_wsetlocale` to set the preferred locale in that thread immediately afterward.

Expand Down