GNU bug report logs - #19738
How did [a-z] match é?

Previous Next

Package: grep;

Reported by: James Calfee <james <at> jcalfee.info>

Date: Sat, 31 Jan 2015 02:48:02 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 19738 in the body.
You can then email your comments to 19738 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-grep <at> gnu.org:
bug#19738; Package grep. (Sat, 31 Jan 2015 02:48:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to James Calfee <james <at> jcalfee.info>:
New bug report received and forwarded. Copy sent to bug-grep <at> gnu.org. (Sat, 31 Jan 2015 02:48:02 GMT) Full text and rfc822 format available.

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

From: James Calfee <james <at> jcalfee.info>
To: bug-grep <at> gnu.org
Subject: How did [a-z] match é?
Date: Fri, 30 Jan 2015 20:44:13 -0500
[Message part 1 (text/plain, inline)]
http://stackoverflow.com/questions/28247204/how-did-a-z-match-%C3%A9
[Message part 2 (text/html, inline)]

Added tag(s) notabug. Request was from Eric Blake <eblake <at> redhat.com> to control <at> debbugs.gnu.org. (Sat, 31 Jan 2015 22:26:02 GMT) Full text and rfc822 format available.

Reply sent to Eric Blake <eblake <at> redhat.com>:
You have taken responsibility. (Sat, 31 Jan 2015 22:26:03 GMT) Full text and rfc822 format available.

Notification sent to James Calfee <james <at> jcalfee.info>:
bug acknowledged by developer. (Sat, 31 Jan 2015 22:26:03 GMT) Full text and rfc822 format available.

Message #12 received at 19738-done <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: James Calfee <james <at> jcalfee.info>, 19738-done <at> debbugs.gnu.org
Subject: Re: bug#19738: How did [a-z] match é?
Date: Sat, 31 Jan 2015 15:25:29 -0700
[Message part 1 (text/plain, inline)]
tag 19738 notabug
thanks

On 01/30/2015 06:44 PM, James Calfee wrote:
> http://stackoverflow.com/questions/28247204/how-did-a-z-match-%C3%A9

Rather than making us chase a link, how about pasting the content of
your question directly in your mail.

At any rate, the answer to the question in your subject line is that
your current locale is set up to include letters outside of the 26 ascii
bytes.  Run with LC_ALL=C in the environment to get the well-defined
behavior you seem to want, and note that POSIX states that range
expressions in regular expressions are undefined in non-C locales,
precisely because some tools use all collation elements that 'sort'
would place in the range, while other tools use 'rational range
expression' and treat the range as if it were ASCII instead of the
current locale.

This is not a bug in coreutils, so I'm closing the tracker bug, but do
feel free to make further comments or questions.


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

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

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 01 Mar 2015 12:24:03 GMT) Full text and rfc822 format available.

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

Previous Next


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