[llvm-bugs] [Bug 48444] New: std::wcout locale defaults to C
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Dec 8 09:33:12 PST 2020
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: unassignedclangbugs at nondot.org
Reporter: yuri at tsoft.com
CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201208/0b53dae4/attachment.html>
More information about the llvm-bugs
mailing list