NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: toolchain/54411: std::locale broken
the basic problem is that we are using the generic locale which does not support other than c.
christos
> On Jul 27, 2019, at 6:55 PM, Joerg Sonnenberger <joerg%bec.de@localhost> wrote:
>
> The following reply was made to PR toolchain/54411; it has been noted by GNATS.
>
> From: Joerg Sonnenberger <joerg%bec.de@localhost>
> To: gnats-bugs%netbsd.org@localhost
> Cc: toolchain-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
> netbsd-bugs%netbsd.org@localhost
> Subject: Re: toolchain/54411: std::locale broken
> Date: Sat, 27 Jul 2019 17:53:45 +0200
>
>> On Sat, Jul 27, 2019 at 07:05:00AM +0000, Thomas Klausner wrote:
>> char thou_sep = std::use_facet<std::numpunct<wchar_t> >(loc).thousands_sep();
>
> That's truncating a wchar_t to char. Not going to work at all for
> multibyte locales.
>
> Joerg
>
Home |
Main Index |
Thread Index |
Old Index