X-Recipient: archive-cygwin AT delorie DOT com 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 Message-ID: <4D9B420A.9020305@redhat.com> Date: Tue, 05 Apr 2011 10:23:38 -0600 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 DOT 50305 AT redhat DOT 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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com --------------enigC462F88FEB7A507ACEBD5DEA Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 AT redhat DOT 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" -----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--