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

Re: bash: LC_COLLATE ignores nocaseglob in some locales



# difficult to fix.
# this is how fnmatch() is documented to work
found 333953 bash/4.1-3
forcemerge 301717 333953
retitle 333953 fnmatch("[a-z]", ...) matches capital letters in most locales
reassign 333953 libc6 2.11.2-7
affects 333953 + bash
quit

Hi,

Sorry for the long silence.

The relevant detail is that what [a-z] matches depends on the
collation order.  This gives globs like [א-ת] a more useful
(locale-specific) meaning than the C.UTF-8 collation order would
dictate, with the unfortunate side-effect of giving [a-z]
counterintuitive behavior with respect to case folding[1].

Toni Mueller wrote:

> Upping the severity due to possible negative impact (I've been bitten
> several times, too), semi-hidden documentation,

A separate bug report suggesting how to improve the documentation
would be welcome.

>                                                 and the long time that
> has passed without any action.

That doesn't make a bug any more or less severe. :)

Hope that helps,
Jonathan

[1] http://www.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_13_01
http://www.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html#tag_09_03_05
http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=35;bug=570929


Reply to: