[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nocaseglob
From: |
Tim Waugh |
Subject: |
Re: nocaseglob |
Date: |
Mon, 22 Jan 2007 16:24:35 +0000 |
On Mon, 2007-01-22 at 08:04 -0800, Bruce Korb wrote:
> There seems to be something else aside from LC_ALL, LC_COLLATE
> and LANG that affects collating sequence. Notice the difference
> between "[a-d]*" and "[a-D]*". Whatever collating sequence is being used
> do select files puts "D" after "d", though the actual sort puts them as being
> equal. Whatever. I've gotten bored now. :)
It's worth noting here that bash's globbing of '[A-Z]*' etc is
definitely different from the system collation sequence (i.e. using
fnmatch() or glob() functions). There is an open bug report about this
here:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=217359
Demo:
Steps to Reproduce:
1. touch h
2. sh -c 'LC_ALL=en_US; echo [A-Z]'
3. python -c 'from locale import *; import glob; setlocale(LC_ALL,"en_US");
print glob.glob("[A-Z]")'
Tim.
*/
signature.asc
Description: This is a digitally signed message part
- nocaseglob, Bruce Korb, 2007/01/20
- Re: nocaseglob, Andreas Schwab, 2007/01/20
- Re: nocaseglob, Bob Proulx, 2007/01/20
- Re: nocaseglob, Bruce Korb, 2007/01/22
- Re: nocaseglob, Bob Proulx, 2007/01/22
- Re: nocaseglob, Bruce Korb, 2007/01/22
- Re: nocaseglob,
Tim Waugh <=
- Re: nocaseglob, Chet Ramey, 2007/01/23
- Re: nocaseglob, Bruce Korb, 2007/01/23
- Re: nocaseglob, Matthew Woehlke, 2007/01/23
- Re: nocaseglob, Andreas Schwab, 2007/01/23
- Re: nocaseglob, Tim Waugh, 2007/01/23
- Re: nocaseglob, Chet Ramey, 2007/01/23
- Re: nocaseglob, Bob Proulx, 2007/01/23
- Re: nocaseglob, Chet Ramey, 2007/01/23
- Re: nocaseglob, Bruce Korb, 2007/01/23
- Re: nocaseglob, Chet Ramey, 2007/01/23