This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [Patch, libstdc++/64649] Fix regex_traits::lookup_collatename and regex_traits::lookup_classname
- From: Tim Shen <timshen at google dot com>
- To: Jonathan Wakely <jwakely at redhat dot com>
- Cc: "libstdc++" <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 19 Jan 2015 15:52:28 -0800
- Subject: Re: [Patch, libstdc++/64649] Fix regex_traits::lookup_collatename and regex_traits::lookup_classname
- Authentication-results: sourceware.org; auth=none
- References: <CAG4ZjN=a3TG-qANYgtgt_e9vhhMCWxvChQRzcBHHYJrwKLszHg at mail dot gmail dot com> <20150119132329 dot GD3360 at redhat dot com> <CAG4ZjNmZSfX_oDjL1=qWk22inYaAYh9Bg-GYy74kNmVnkExntw at mail dot gmail dot com>
On Mon, Jan 19, 2015 at 3:28 PM, Tim Shen <timshen@google.com> wrote:
> I just noticed that if we want to implement it 100% accurately,
> narrowing down the input string to char string is clearly wrong.
Let me take that back, since [22.4.1.1.2].12 requires that
do_widen(do_narrow(c,0)) == c, which gives us a chance to use narrow
and still be accurate.
I think it'll be a quick fix.
--
Regards,
Tim Shen