[libcxx-commits] [PATCH] D59572: Fix and speedup __libcpp_locale_guard on Windows
Shoaib Meenai via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Mar 26 12:52:20 PDT 2019
smeenai added inline comments.
================
Comment at: include/__locale:85
+ if (__locale_all != nullptr) {
+ __setlocale(__locale_all);
+ free(__locale_all);
----------------
Have you confirmed that `setlocale` does the right thing when given the semicolon-separated list of locale settings for the different categories? The docs talk about returning such a string for the `setlocale(LC_ALL, nullptr)` case, but they don't mention what happens if you try to use such a string to set the locale. https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/setlocale-wsetlocale?view=vs-2017
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59572/new/
https://reviews.llvm.org/D59572
More information about the libcxx-commits
mailing list