Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Dec 2020 04:14:50 +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-QfWIHGuT3s@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-251674-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-251674-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251674

--- Comment #5 from Yuri Pankov <yuripv@FreeBSD.org> ---
(In reply to Yuri Victorovich from comment #4)
So it's full of wonders, for clang you need:

    std::wcout.imbue(std::locale(""));

...and for gcc you need:

    setlocale(LC_ALL, "");

Reproduced the same with clang/libc++ 10/11 on Debian, so it does not seem =
to
be FreeBSD specific.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-251674-227-QfWIHGuT3s>