Date: Wed, 02 Dec 2009 22:16:42 +0100 From: Erwin Hoffmann <feh@fehcom.de> To: jh@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: bin/141036: tr(1) does not respect locale setting Message-ID: <C4BB88A6E4E31FA828D0B487@artemis.fehnet.de> In-Reply-To: <200912021655.nB2GtVHH044204@freefall.freebsd.org> References: <200912021655.nB2GtVHH044204@freefall.freebsd.org>
index | next in thread | previous in thread | raw e-mail
Hi jh, --On Wednesday, December 02, 2009 16:55:31 +0000 jh@FreeBSD.org wrote: > Synopsis: tr(1) does not respect locale setting > > State-Changed-From-To: open->closed > State-Changed-By: jh > State-Changed-When: Wed Dec 2 16:45:56 UTC 2009 > State-Changed-Why: > See the COMPATIBILITY section in tr(1) manual page. If you want to convert > a file to lower case you should use tr "[:upper:]" "[:lower:]". indeed. This works (and I should have read the man page). Q: Why not simply use [A-Z] as a synonym for :upper: (and vice versa for :lower:) ? INDIVIDUAL none standard ASCII characters are converted in the literal sense! echo "ääää" | tr '[ä]' '[Ä]' => ÄÄÄÄ (if you can read it; it is the German umlaut 'u' sometimes expressed as 'ue'). as expected. Thus for *single* characters 'tr' works as expected; hower not for ranges. This is far from abvious; though explained in the man page. Sorry for the trouble. Pls. close the bug report. regards & thanks. --eh. > > http://www.freebsd.org/cgi/query-pr.cgi?pr=141036 > Dr. Erwin Hoffmann | FEHCom | http://www.fehcom.de/help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C4BB88A6E4E31FA828D0B487>
