https://bugs.llvm.org/show_bug.cgi?id=48444
Bug ID: 48444
Summary: std::wcout locale defaults to C
Product: libc++
Version: 11.0
Hardware: PC
OS: FreeBSD
Status: NEW
Severity: enhancement
Priority: P
Component: All Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
This
> std::cout << "std::wcout's locale=" << std::wcout.getloc().name() <<
> std::endl;
prints "C" by default, despite user's locale being en_US.UTF-8
Is the choice of "C" based on some requirement stated in standards?
As it is now, users always need to call "std::wcout.imbue(std::locale(""));" in
order to make std::wcout usable with non-ASCII characters.
It would seem that std::wcout's default of "" or same as user's locale would
have been more practical.
Do users really always need to call "std::wcout.imbue(std::locale(""));" before
std::wcout can become usable?
OS: FreeBSD
clang-10
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251674
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs