Skip to content

Commit a835bfa

Browse files
authored
Use LC_ALL_MASK rather than LC_ALL when calling newlocale (microsoft#1330)
Resolves microsoft#1329 as @jason-ha suggests
1 parent feb0755 commit a835bfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Release/src/utilities/asyncrt_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ scoped_c_thread_locale::xplat_locale scoped_c_thread_locale::c_locale()
124124
delete clocale;
125125
};
126126
#else
127-
*clocale = newlocale(LC_ALL, "C", nullptr);
127+
*clocale = newlocale(LC_ALL_MASK, "C", nullptr);
128128
if (clocale == nullptr || *clocale == nullptr)
129129
{
130130
throw std::runtime_error("Unable to create 'C' locale.");

0 commit comments

Comments
 (0)