Avoid tr case-conversion failure in some locales.
authorJim Meyering <meyering@redhat.com>
Sat, 5 Jan 2008 22:55:01 +0000 (23:55 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 5 Jan 2008 23:09:29 +0000 (00:09 +0100)
commit6efd10462d8103208f4575f0b5edddf841c7d87c
tree8084cb4f82237f06a2e51d1c6cba9b34a38afc03
parentdf8c2bcfe0658af32ceb7fedd795e5359631ff84
Avoid tr case-conversion failure in some locales.

* src/tr.c (skip_construct): New function.
(main): When processing a pair of case-converting classes, don't
iterate through the elements of each [:upper:] or [:lower:] class.
Reported by Gerald Pfeifer in
<http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/12218>.
* tests/tr/Test.pm [tolower-F]: New test for the above fix.
[upcase-xtra, dncase-xtra]: New tests, for a related code path.
* NEWS: Mention the tr bug fix.
ChangeLog
NEWS
THANKS
src/tr.c
tests/tr/Test.pm