From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 4 08:03:12 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 8EC4716A41F for ; Sun, 4 Sep 2005 08:03:12 +0000 (GMT) (envelope-from gjb@gbch.net) Received: from gw.gbch.net (gw.gbch.net [203.143.238.93]) by mx1.FreeBSD.org (Postfix) with SMTP id 9545F43D48 for ; Sun, 4 Sep 2005 08:03:06 +0000 (GMT) (envelope-from gjb@gbch.net) Received: (qmail 69513 invoked from network); 4 Sep 2005 18:03:04 +1000 Received: from iliad.gbch.net (172.16.1.9) by gw.gbch.net with SMTP; 4 Sep 2005 18:03:04 +1000 Received: (qmail 98618 invoked by uid 1001); 4 Sep 2005 18:03:03 +1000 Message-ID: Date: Sun, 4 Sep 2005 18:03:02 +1000 From: Greg Black To: Rein Kadastik References: <43196C96.6040504@uninet.ee> <20050903101800.GA77285@cirb503493.alcatel.com.au> <43198251.6070606@uninet.ee> <43198354.3000402@uninet.ee> <4319864A.3040706@uninet.ee> <20050903154526.GA1247@gothmog.gr> <431A9606.6010401@uninet.ee> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <431A9606.6010401@uninet.ee> User-Agent: Mutt/1.4.2.1i; gjb-muttsend.sh 1.7 2004-10-05 X-Uptime: 79 days X-Operating-System: FreeBSD 5.4-RELEASE i386 X-Location: Brisbane, Australia; 27.49841S 152.98439E X-URL: http://www.gbch.net/gjb.html X-Blog: http://www.gbch.net/gjb/blog/ X-Image-URL: http://www.gbch.net/gjb/gjb-auug048.gif X-PGP-Key-Fingerprint: EBB2 2A92 A79D 1533 AC00 3C46 5D83 B6FB 4B04 B7D6 X-Request-PGP: http://www.gbch.net/keys/4B04B7D6.asc 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 08:03:12 -0000 On 2005-09-04, Rein Kadastik wrote: > Giorgos Keramidas wrote: > >> 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. > > Yep, I know but it does not matter. The form [a-z] is used all over the > place in the FreeBSD source (1629 lines in 4.11-RELEASE-p11 and almost > 1600 in 5-STABLE). Totally hopeless. Seems, that no developer have ever > heard about character classes and it VERY UNSAFE to try to compile (and > actually even run) FreeBSD with some other locale than C/en_US.ISO8859-1. > > I actually searched for existance of character classes in source code. > Found around 30 matches. Mostly in manual pages. Perl configure script > checks if tr supports them, but it actually never uses the featuire > (even if available). > > I am totally dissappointed about this. I thought about reporting a bug, > but as it is everywhere, there is no point to do so. That's a really weird decision. The English speaking people are never going to notice or be troubled by bugs like this, but they are bugs and it makes sense to fix them. But, as always, it's up to the people who are affected to do the initial work. So, rather than whining about how hopeless FreeBSD is, get busy and send in the PR so that it can be fixed. It is, after all, a simple thing to fix. Greg