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

Re: Bug#160932: bash: fileglobbing broken with LANG=sv_SE



Colin Watson writes:
> On Sun, Jan 25, 2004 at 12:07:11PM +0100, Matthias Klose wrote:
> > Tobias writes:
> > > Attached is a small script that shows the difference between the too. 
> > > Personally I think the tcsh is better sorted because of the difference 
> > > between "A" and "a".
> > 
> > bash's behaviour is different than tcsh, dash, zsh, ksh.
> > 
> > bash --norc
> > LANG=sv_SE
> > power-post-setup.bmp
> > ls: [A-Z][A-Z]*: No such file or directory
> > ls: [A-Z][A-Z]*: No such file or directory
> > 
> > all other shells don't show the file with the lowercase letter.
> > reading bash(1)'s Environment section, one might think, that
> > explicitely setting LC_CTYPE would help, but it does not:
> 
> LC_COLLATE=C would be what makes the difference, I'd've thought?
> 
>   $ export LANG=en_GB.ISO-8859-1
>   $ ls -d [A-Z][A-Z]*
>   bin  debian  misc  mp3  public_html  src  tmp
>   $ export LC_COLLATE=C
>   $ ls -d [A-Z][A-Z]*
>   ls: [A-Z][A-Z]*: No such file or directory

ok, thanks. Any idea, why de_DE and sv_SE is different in the first
case?



Reply to: