Open llvmbot opened 5 years ago
This fragment works for me:
#include <locale>
void foo() {
std::locale::global(std::locale{"en_US.UTF-8"});
}
on macOS (clang-1100) and Linux (clang 7.0 & 8.0) provided it's compiled in at least C++11 mode.
Can you attach a self-contained example that fails with the error you're seeing, and tell us what versions you're using?
Extended Description
Here is the syntax error I got. I copied the language off of page 1116 in "The C++ Programming Language" book so I know it should work.