Date: Sun, 23 Jan 2005 11:52:07 +1100 From: Tim Robbins <tjr@freebsd.org> To: Bj?rn K?nig <bkoenig@cs.tu-berlin.de> Cc: freebsd-stable@freebsd.org Subject: Re: correct value for LANG variable Message-ID: <20050123005207.GA83787@cat.robbins.dropbear.id.au> In-Reply-To: <41F28D79.8080102@cs.tu-berlin.de> References: <41F276CD.8020907@cs.tu-berlin.de> <200501221807.48299.michaelnottebrock@gmx.net> <41F28D79.8080102@cs.tu-berlin.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jan 22, 2005 at 06:29:29PM +0100, Bj?rn K?nig wrote: > Michael Nottebrock schrieb: > > > > >Use tr [:lower:] [:upper:] instead. > > > I was wondering about a third-party script which always > worked for years with Solaris. I just didn't realized that > this issue concerns a difference between SysV and BSD. The current behaviour of range expressions in tr was required by the Single Unix Specification Version 2 (SUSv2). Version 3 loosened this requirement by making these expressions "unspecified" in locales other than "POSIX". This means you can't use tr with range expressions in any script intending to be portable without first setting LANG to "POSIX". For reference, the systems I know of that sort range expressions according to the current locale are FreeBSD 5 (and later), AIX, and Tru64. The systems I know of that don't sort are FreeBSD 4 (and earlier), GNU (coreutils), and NetBSD. Tim
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050123005207.GA83787>