From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 4 04:16:01 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0282D16A420 for ; Sun, 4 Sep 2005 04:16:01 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from nic.ach.sch.gr (nic.sch.gr [194.63.238.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 111BE43D48 for ; Sun, 4 Sep 2005 04:15:59 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: (qmail 11704 invoked by uid 207); 4 Sep 2005 04:15:58 -0000 Received: from keramida@freebsd.org by nic by uid 201 with qmail-scanner-1.21 (sophie: 3.04/2.19/3.81. Clear:RC:1(81.186.70.219):. Processed in 1.800281 secs); 04 Sep 2005 04:15:58 -0000 Received: from dialup219.ach.sch.gr (HELO gothmog.gr) ([81.186.70.219]) (envelope-sender ) by nic.sch.gr (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 4 Sep 2005 04:15:56 -0000 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.4/8.13.4) with ESMTP id j844FewM007920; Sun, 4 Sep 2005 07:15:40 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from giorgos@localhost) by gothmog.gr (8.13.4/8.13.4/Submit) id j83FjQJ0001388; Sat, 3 Sep 2005 18:45:26 +0300 (EEST) (envelope-from keramida@freebsd.org) Date: Sat, 3 Sep 2005 18:45:26 +0300 From: Giorgos Keramidas To: Rein Kadastik Message-ID: <20050903154526.GA1247@gothmog.gr> References: <43196C96.6040504@uninet.ee> <20050903101800.GA77285@cirb503493.alcatel.com.au> <43198251.6070606@uninet.ee> <43198354.3000402@uninet.ee> <4319864A.3040706@uninet.ee> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4319864A.3040706@uninet.ee> Cc: freebsd-hackers@freebsd.org Subject: Re: sed not working X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Sep 2005 04:16:01 -0000 On 2005-09-03 14:17, Rein Kadastik 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.