Date: Sat, 22 Jan 2005 18:07:40 +0100 From: Michael Nottebrock <michaelnottebrock@gmx.net> To: freebsd-stable@freebsd.org Cc: =?iso-8859-15?q?Bj=F6rn_K=F6nig?= <bkoenig@cs.tu-berlin.de> Subject: Re: correct value for LANG variable Message-ID: <200501221807.48299.michaelnottebrock@gmx.net> In-Reply-To: <41F276CD.8020907@cs.tu-berlin.de> References: <41F276CD.8020907@cs.tu-berlin.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart2475791.EgKh8slqY5 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday, 22. January 2005 16:52, Bj=F6rn K=F6nig wrote: > I am a bit confused. Neither de_DE.ISO-8859-1 nor > de_DE.ISO8859-1 work properly in all cases. > > > setenv LANG de_DE.ISO8859-1 > > echo abcdef uvwxyz | tr '[a-z]' '[A-Z]' > > ABCDEF =DAWXY=DD] This is the correct locale name, but don't use tr like that, you can't rely= on=20 that to work correctly with charsets which aren't symmetric in=20 lower&uppercase characters (it used to work at some point for the ISO8859-1 [5] locales but ceased after a POSIX related modification to tr). Use tr [:lower:] [:upper:] instead. =2D-=20 ,_, | Michael Nottebrock | lofi@freebsd.org (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org --nextPart2475791.EgKh8slqY5 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBB8ohkXhc68WspdLARArXqAJ4isHSLx4STYycxDXYSzzhjdMXg7ACgpzlB bCtmD56+d1q/9D36UcFDGOs= =c2Cl -----END PGP SIGNATURE----- --nextPart2475791.EgKh8slqY5--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501221807.48299.michaelnottebrock>