Date: Sat, 3 Sep 2005 18:45:26 +0300 From: Giorgos Keramidas <keramida@freebsd.org> To: Rein Kadastik <wigry@uninet.ee> Cc: freebsd-hackers@freebsd.org Subject: Re: sed not working Message-ID: <20050903154526.GA1247@gothmog.gr> In-Reply-To: <4319864A.3040706@uninet.ee> References: <43196C96.6040504@uninet.ee> <20050903101800.GA77285@cirb503493.alcatel.com.au> <43198251.6070606@uninet.ee> <43198354.3000402@uninet.ee> <4319864A.3040706@uninet.ee>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2005-09-03 14:17, Rein Kadastik <wigry@uninet.ee> wrote: > Rein Kadastik wrote: > >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? > > 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 and > therefore the expression [a-z] does not cover the full alphabet anymore. By using a character class: [[:alpha:]] AFAIK, if you are using non-English locales, there's no guarantee that [a-z] will be the entire set of lowercase letters, or that it will only include lowercase letters, for that matter.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050903154526.GA1247>