[Bug 251674] std::wcout doesn't print unicode wide characters

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Dec 8 03:28:05 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251674

--- Comment #4 from Yuri Victorovich <yuri at freebsd.org> ---
This works with clang-10:
> int main() {
>         std::locale mylocale("");
>         std::wcout.imbue(mylocale);
>         std::wcout << L'>' << L'◯' << L'<' << std::endl;
> }

but with gcc-9 and gcc-10 it fails:
> $ ./a.out 
> terminate called after throwing an instance of 'std::runtime_error'
>   what():  locale::facet::_S_create_c_locale name not valid
> Abort trap

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list