Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Dec 2020 03:28:05 +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-xufY3Z63g0@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 #4 from Yuri Victorovich <yuri@freebsd.org> ---
This works with clang-10:
> int main() {
>         std::locale mylocale("");
>         std::wcout.imbue(mylocale);
>         std::wcout << L'>' << L'=E2=97=AF' << L'<' << std::endl;
> }

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

--=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-xufY3Z63g0>