[linux-l] case-less bash

Peter Ross Peter.Ross at alumni.tu-berlin.de
Mo Nov 19 12:30:01 CET 2007


On Mon, 19 Nov 2007, Rocco Rutte wrote:

> * Oliver Bandel [07-11-18 01:22:34 +0100] wrote:
> 
> >Seltsam ist auch, daß sich das ls bei [a-z]
> >für case-insensitive entscheidet, bei ls [A-Z] aber für
> >case-sensitiv.

Lustigerweise scheint mein FreeBSD-ls das nicht zu tun.. beides ist 
casesensitiv.
 
> Es hilft zwar nicht :-), aber das macht mutt beim Suchen auch (IIRC 
> schon immer) so. 

Vielleicht, weil es 'runter' auf die gleiche libc-Funktionen geht?

Auf FreeBSD-current ist ein Thread:

"Setting LANG=sv_SE.ISO_8859-1 breaks 7.0 buildworld"

Bei dem das Problem auf awk und dann auf die C-Funktionen runtergebrochen 
wurde..

Hier das Schönste:

http://lists.freebsd.org/pipermail/freebsd-current/2007-November/080154.html

Johan Bucht schrieb:

> 2007/11/18, Andrey Chernov <ache at nagual.pp.ru>:
> > On Sun, Nov 18, 2007 at 02:30:19PM +0300, Andrey Chernov wrote:
> > > On Sun, Nov 18, 2007 at 02:22:26PM +0300, Andrey Chernov wrote:
> > > > 1) it should be sv_SE.ISO8859-1, not sv_SE.ISO_8859-1
> > > ...
> > > > 4) Test script reduced to minimum
> > >
> > > Even not the awk bug but rather strcoll() or locale definition, 
reduced
> > > down to that:
> > >
> > > #include <locale.h>
> > > #include <stdio.h>
> > > #include <string.h>
> > >
> > > main() {
> > > setlocale(LC_ALL, "");
> > > printf ("%d\n", strcoll("ve","w"));
> > > }
> >
> > This is locale definition, I find (V,W); and (v,w); there, is that 
> > right equivalences for sv_SE? I.e. is v=w in sv_SE sorting?
>
> Yes. W is rarely used in swedish, it's basically considered the same
> letter as V and the few words starting with W are placed under V in
> the dictionary.

Ein paar Mails weiter wirds für Schwedenfanatiker;-) nochmal interessant:

Reko Turja schrieb:

"The headline is: Alfabet grows - with w. The swedish alfabet no longer 
has 28 letters, but 29. This means for example that a great amount of 
textbooks has to be rewritten.

The gist of the story is that the Swedish Academy made v and w 
distinct in their vocabulary at 2006.

According http://sv.wikipedia.org/wiki/Svenska_alfabetet the 
separation of v and w has been official since 2006."

Viel Spaß
wobei auch immer
Peter


Mehr Informationen über die Mailingliste linux-l