diff options
author | Jim Meyering <meyering@redhat.com> | 2008-01-05 23:55:01 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-01-06 00:09:29 +0100 |
commit | 6efd10462d8103208f4575f0b5edddf841c7d87c (patch) | |
tree | 8084cb4f82237f06a2e51d1c6cba9b34a38afc03 /NEWS | |
parent | df8c2bcfe0658af32ceb7fedd795e5359631ff84 (diff) | |
download | coreutils-6efd10462d8103208f4575f0b5edddf841c7d87c.tar.xz |
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.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2,6 +2,12 @@ GNU coreutils NEWS -*- outline -*- * Noteworthy changes in release 6.? (????-??-??) [?] +** Bug fixes + + tr's case conversion would fail in a locale with differing numbers + of lower case and upper case characters. E.g., this would fail: + env LC_CTYPE=en_US.iso88591 tr '[:upper:]' '[:lower:]' + [bug introduced in coreutils-6.9.90] * Noteworthy changes in release 6.9.91 (2007-12-15) [beta] |