From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31059 invoked by alias); 5 Apr 2011 16:23:51 -0000 Received: (qmail 31050 invoked by uid 22791); 5 Apr 2011 16:23:50 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 05 Apr 2011 16:23:39 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p35GNdJj022565 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 5 Apr 2011 12:23:39 -0400 Received: from [10.3.113.117] (ovpn-113-117.phx2.redhat.com [10.3.113.117]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p35GNc9P030479; Tue, 5 Apr 2011 12:23:39 -0400 Message-ID: <4D9B420A.9020305@redhat.com> Date: Tue, 05 Apr 2011 22:01:00 -0000 From: Eric Blake User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.9 MIME-Version: 1.0 To: Jim Garrison , cygwin Subject: Re: grep problem? References: <4D9A43E4.50305@redhat.com> In-Reply-To: OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigC462F88FEB7A507ACEBD5DEA" X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-04/txt/msg00076.txt.bz2 --------------enigC462F88FEB7A507ACEBD5DEA Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-length: 940 http://cygwin.com/acronyms/#PPIOSPE - redirecting to the list On 04/05/2011 10:20 AM, Jim Garrison wrote: >> POSIX states that range expressions (such as [A-Z]) are undefined in >> any >> locale except C; and some locales (like en_US.UTF-8) happen to treat A- >> B >> as AaB, A-b as AaBb, and so forth (that is, they collate >> case-insensitively). >> >=20 > Interesting. I assumed it had to do with collation, but curiously, on Fe= dora 10 I get different results: Not all en_US.UTF-8 locale implementations are created equal. Some implementations of that locale have taken additional measures to make collation vs. range computation try to behave saner. > I'm confused. Is Fedora 10 wrong? Not necessarily wrong, just different. Which is why POSIX states that outside of the C locale, range expressions are non-portable. --=20 Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org --------------enigC462F88FEB7A507ACEBD5DEA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 619 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJNm0IKAAoJEKeha0olJ0NqZpMIAIN+SourG3gAnIZVST4PN4/r DPUWXRjzWEsXtvE4hfMpqNUrcueXy3mieUJv8gtgrI1uzLvvirGMUkJTEqJ5ktYZ 9+OpcP6IOSWKIZESRUhh2XtqXbLXr4TZIuFThvEwOcJsRiKqtA7kcv1/EkY4OkXP RdB1jEGABIAmrqvBs0MaIAaO+vg+WHQHqvDWT9pPrCTD/vc5PWVq5JdorJ7URnke M6ToEPwoEGwoqeF3vQM4BwUoz8TZIMCcNrNwi75yB2RoVE5/Jwn6WCQuhICWGID+ UdavL9U0OcGH1Z1xcnzmLnulXvdXgVLf7qEKbcYIEcQeUOgVDUd8fLRmVW6kYAo= =rrNU -----END PGP SIGNATURE----- --------------enigC462F88FEB7A507ACEBD5DEA--