GNU bug report logs - #18817
\w is not synonym for [[:alnum:]] in UTF-8 locales

Previous Next

Package: grep;

Reported by: Jaroslav Skarvada <jskarvad <at> redhat.com>

Date: Fri, 24 Oct 2014 14:21:02 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 18817 <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: Norihiro Tanaka <noritnk <at> kcn.ne.jp>, 18817 <at> debbugs.gnu.org
Subject: Re: bug#18817: \w is not synonym for [[:alnum:]] in UTF-8 locales
Date: Fri, 24 Oct 2014 15:04:25 -0600
[Message part 1 (text/plain, inline)]
On 10/24/2014 11:26 AM, Norihiro Tanaka wrote:
> As \w and \W have been supported in single byte locales only, I added
> support in multibyte locales.
> 

> +
> +          /* \w and \W are documented to be equivalent to [_[:album:]] and
> +             [^_[:alnum:]] respectively, so tell the lexer to process those
> +             strings, each minus its "already processed" '['.  */

s/album/alnum/

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

[signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 10 years and 212 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.