This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Fix strptime era handling, add more era tests [BZ #24394]
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Carlos O'Donell <codonell at redhat dot com>
- Cc: DJ Delorie <dj at redhat dot com>, <libc-alpha at sourceware dot org>, Rafal Luzynski <digitalfreak at lingonborough dot com>, TAMUKI Shoichi <tamuki at linet dot gr dot jp>
- Date: Thu, 28 Mar 2019 16:43:51 +0000
- Subject: Re: Fix strptime era handling, add more era tests [BZ #24394]
- References: <xnwokjpqz0.fsf@greed.delorie.com> <ab33fc37-4dd2-f8f8-36b2-220608f1aa4a@redhat.com>
On Thu, 28 Mar 2019, Carlos O'Donell wrote:
> (a) Explicit code points.
>
> I would like to see something like this:
>
> "<U5E73><U6210>3<U5E74>"
>
> Which is then converted by the test framework into the output encoding.
Using \u escape sequences in the string would be better (provided you want
a UTF-8 string, -fexec-charset=utf-8 is the GCC default and is implemented
entirely within GCC without depending on what iconv support might be
available for the host GCC runs on). Note that we already have various
tests using \u.
(For tests using non-UTF-8 encodings, hex escape sequences for the
individual characters may be safer, to avoid dependence on iconv support
linked into GCC.)
--
Joseph S. Myers
joseph@codesourcery.com