We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36eac25 commit ef85b0eCopy full SHA for ef85b0e
libcxx/test/std/re/re.traits/getloc.pass.cpp
@@ -23,20 +23,10 @@
23
24
int main(int, char**) {
25
std::fprintf(stderr, "Entering main()\n");
26
- {
27
- std::regex_traits<char> t;
28
- std::fprintf(stderr, "Running t.getloc()\n");
29
- assert(t.getloc().name() == "C");
30
- }
31
{
32
std::fprintf(stderr, "Creating locale\n");
33
- std::locale loc(LOCALE_en_US_UTF_8);
34
-
35
- std::fprintf(stderr, "Setting locale globally\n");
36
- std::locale::global(loc);
37
38
39
- assert(t.getloc().name() == LOCALE_en_US_UTF_8);
+ std::locale loc("en_US.UTF-8");
+ (void)loc;
40
}
41
return 0;
42
0 commit comments