Date: Fri, 3 Feb 2006 15:13:27 -0600 From: Dan Nelson <dnelson@allantgroup.com> To: Martin <nakal@nurfuerspam.de> Cc: stable@freebsd.org Subject: Re: tr(1) buggy with de_DE.ISO8859-1(5) locale? Message-ID: <20060203211327.GF38470@dan.emsphone.com> In-Reply-To: <43E3BBBF.4000702@nurfuerspam.de> References: <43E3B356.7030203@nurfuerspam.de> <20060203200036.GE38470@dan.emsphone.com> <43E3BBBF.4000702@nurfuerspam.de>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Feb 03), Martin said: > Dan Nelson wrote: > >See the "tr" manpage, especially the EXAMPLES and COMPATIBILITY > >sections. > > From tr(1) COMPATIBILITY: > > "Since tr now obeys the locale's collation order, this idiom may not > produce correct results when there is not a 1:1 mapping between lower > and upper case" > > Does this mean that because there is no 1:1 mapping of > lower/uppercase "ß", I will never be able to use ranges like "tr s-w > S-W"? tr uses the collation sequence when expanding ranges, so the real problem is that the lowercase range "s-w" expands to "sßtuúùûüvw", and the uppercase range "S-W" expands to "STUÚÙÛÜVW", which is a smaller set. An alternative would be to use "tr stuvw STUVW" or "tr stuúùûüvw STUÚÙÛÜVW". -- Dan Nelson dnelson@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060203211327.GF38470>