From owner-freebsd-stable@FreeBSD.ORG Sun Jan 23 00:51:56 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8128A16A4CE for ; Sun, 23 Jan 2005 00:51:56 +0000 (GMT) Received: from smtp02.syd.iprimus.net.au (smtp02.syd.iprimus.net.au [210.50.76.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4295943D1D for ; Sun, 23 Jan 2005 00:51:56 +0000 (GMT) (envelope-from tim@robbins.dropbear.id.au) Received: from robbins.dropbear.id.au (210.50.249.169) by smtp02.syd.iprimus.net.au (7.0.036) id 41A76DCB0186F63B; Sun, 23 Jan 2005 11:51:50 +1100 Received: by robbins.dropbear.id.au (Postfix, from userid 1000) id 62925433E; Sun, 23 Jan 2005 11:52:07 +1100 (EST) Date: Sun, 23 Jan 2005 11:52:07 +1100 From: Tim Robbins To: Bj?rn K?nig Message-ID: <20050123005207.GA83787@cat.robbins.dropbear.id.au> References: <41F276CD.8020907@cs.tu-berlin.de> <200501221807.48299.michaelnottebrock@gmx.net> <41F28D79.8080102@cs.tu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41F28D79.8080102@cs.tu-berlin.de> User-Agent: Mutt/1.4.1i cc: freebsd-stable@freebsd.org Subject: Re: correct value for LANG variable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jan 2005 00:51:56 -0000 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