Date: Mon, 07 Dec 2020 22:45:27 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 251674] std::wcout doesn't print unicode wide characters Message-ID: <bug-251674-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251674 Bug ID: 251674 Summary: std::wcout doesn't print unicode wide characters Product: Base System Version: 12.2-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: yuri@freebsd.org Testcase: > #include <iostream> > #include <locale.h> > > int main() { > //setlocale(LC_ALL, "C.UTF-8"); > setlocale(LC_ALL, "en_US.UTF-8"); > std::wcout << L'>' << L'◯' << L'<' << std::endl; > } > $ c++ test-wchar.cpp && ./a.out > >$ It doesn't print the "large circle" unicode character U+25EF and the next char. Replacing the function body with: > printf("◯\n"); prints the circle, so the problem is in std::wcout. Console's locale is en_US.UTF-8: > $ env | grep LC > LC_CTYPE=en_US.UTF-8 > LC_ALL=en_US.UTF-8 12.2-STABLE r366720 -- You are receiving this mail because: You are the assignee for the bug.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-251674-227>
