Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 03 Sep 2005 14:16:40 +0300
From:      Rein Kadastik <wigry@uninet.ee>
To:        freebsd-questions@freebsd.org
Subject:   Re: sed not working
Message-ID:  <43198618.6040309@uninet.ee>
In-Reply-To: <43198330.4030100@uninet.ee>
References:  <4318B54B.6080001@uninet.ee>	<4318B66E.3010603@uninet.ee>	<4318D90B.5030807@dial.pipex.com>	<431954E6.1060802@uninet.ee>	<43197A71.1030106@dial.pipex.com>	<43197F5C.9010507@uninet.ee>	<43198223.50208@uninet.ee> <43198330.4030100@uninet.ee>

next in thread | previous in thread | raw e-mail | index | archive | help
Rein Kadastik wrote:

> Rein Kadastik wrote:
>
>> OK got again some extremely strange testing results.
>>
>> If there is anywhere in the first token (the length does not matter) 
>> one of the following charakters: t, u, v, w, x, y, the transformation 
>> fails. Note that with z it works and with a-s it works also.
>>
>> -- Rein
>> _______________________________________________
>> freebsd-questions@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to 
>> "freebsd-questions-unsubscribe@freebsd.org"
>>
> Well I have one guess here. In estonian alphabet, the z comes 
> immediately after s and before t. So as the regex orders [a-z] the 
> characters t, u, v, w, x, y are left out
>
> How to order the sed to use english alphabet?
>
> Rein
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe@freebsd.org"
>
Well, My guess was right. I have a following line in the /etc/profile:

export LANG=et_EE.ISO8859-15

After I expoerted LANG=en_US.ISO8859-1, the sed started to work.

I did not thought that LANG parameter will also alter the alfabet ant 
therefore the exppression [a-z] does not cover the full alphabet anymore.

Rein



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43198618.6040309>