bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: range [A-Z] bug


From: Eric Blake
Subject: Re: range [A-Z] bug
Date: Fri, 16 Jun 2006 06:10:56 -0600
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Toby Kelsey on 6/16/2006 6:02 AM:
> I discovered that the range pattern '[A-Z]*' matches the filename 'test'
> but not
> 'atest', which appears to be a bug.

Not a bug, but your setting of locales.  Try repeating the test when
LC_ALL=C is in your environment, to see the difference.  Some locales,
such as en_US.utf8, intentionally do case folding in ranges, so that [A-Z]
is interpreted as [AbBcC...zZ].

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEkp/Q84KuGfSFAYARAkoHAKCjolS/VWNd3okksFw2jA27zTbIFACgkGNd
20psoe+ePYImUumsp4ab0J0=
=U8IH
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]