Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Sep 2005 18:03:02 +1000
From:      Greg Black <gjb@gbch.net>
To:        Rein Kadastik <wigry@uninet.ee>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: sed not working
Message-ID:  <nospam-1125820983.98617@iliad.gbch.net>
In-Reply-To: <431A9606.6010401@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> <20050903154526.GA1247@gothmog.gr> <431A9606.6010401@uninet.ee>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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