From owner-freebsd-hackers@FreeBSD.ORG Sat Sep 3 11:17:24 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 64EA316A41F for ; Sat, 3 Sep 2005 11:17:24 +0000 (GMT) (envelope-from wigry@uninet.ee) Received: from mail.neti.ee (smtp-out-1.neti.ee [194.126.101.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04A8043D4C for ; Sat, 3 Sep 2005 11:17:23 +0000 (GMT) (envelope-from wigry@uninet.ee) Message-ID: <4319864A.3040706@uninet.ee> Date: Sat, 03 Sep 2005 14:17:30 +0300 From: Rein Kadastik User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <43196C96.6040504@uninet.ee> <20050903101800.GA77285@cirb503493.alcatel.com.au> <43198251.6070606@uninet.ee> <43198354.3000402@uninet.ee> In-Reply-To: <43198354.3000402@uninet.ee> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee 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: Sat, 03 Sep 2005 11:17:24 -0000 Rein Kadastik wrote: > Rein Kadastik wrote: > >> Peter Jeremy wrote: >> >>> On Sat, 2005-Sep-03 12:27:50 +0300, Rein Kadastik wrote: >>> >>> >>>> Lets take the following sed command (from the ncurses MKlib_gen.sh >>>> script): >>>> >>>> sed -e '/^\([a-z_][a-z_]*\) /s//\1 gen_/' >>>> >>> >>> >> 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-hackers@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >> To unsubscribe, send any mail to >> "freebsd-hackers-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-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-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 and therefore the expression [a-z] does not cover the full alphabet anymore. Rein