Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Dec 2020 05:09:49 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 251674] std::wcout doesn't print unicode wide characters: std::wcout defaults to "C" locale, not to user's locale
Message-ID:  <bug-251674-227-RYV06gkUVu@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

Yuri Victorovich <yuri@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|std::wcout doesn't print    |std::wcout doesn't print
                   |unicode wide characters     |unicode wide characters:
                   |                            |std::wcout defaults to "C"
                   |                            |locale, not to user's
                   |                            |locale

--- Comment #6 from Yuri Victorovich <yuri@freebsd.org> ---
With both clang and gcc this line
> std::cout << std::wcout.getloc().name() << std::endl;
shows the locale in std::wcout defaults to "C" when it should default to the
current user's locale.

Without this std::wcout isn't usable from libraries because libraries have =
to
use the default state of std::wcout and it does not correspond to user's lo=
cale
without the top-level program setting it in std::wcout.

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