diff options
author | Jim Meyering <meyering@redhat.com> | 2008-01-11 10:06:36 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-01-11 10:07:01 +0100 |
commit | e52a7c28ac97a8b091a3fb2cdc41ee258145603a (patch) | |
tree | f560acbae238a3ebeadd46f9d5ea08d5f1a39a58 | |
parent | 6d80b05c5a6407ef28c994ed8d4c495ffed7188b (diff) | |
download | coreutils-e52a7c28ac97a8b091a3fb2cdc41ee258145603a.tar.xz |
tests/tr/Test.pm: Prefer en_US.ISO-8859-1 to en_US.iso88591.
Suggestions from James Youngman and Pádraig Brady in
http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/12218/focus=12227
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | tests/tr/Test.pm | 4 |
3 files changed, 9 insertions, 3 deletions
@@ -1,3 +1,9 @@ +2008-01-11 Jim Meyering <meyering@redhat.com> + + * tests/tr/Test.pm: Prefer en_US.ISO-8859-1 to en_US.iso88591. + Suggestions from James Youngman and Pádraig Brady in + http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/12218/focus=12227 + 2008-01-10 Jim Meyering <meyering@redhat.com> * README-hacking: Add Git to the list of required tools. @@ -10,7 +10,7 @@ GNU coreutils NEWS -*- outline -*- 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:]' + env LC_CTYPE=en_US.ISO-8859-1 tr '[:upper:]' '[:lower:]' [bug introduced in coreutils-6.9.90] ** Improvements diff --git a/tests/tr/Test.pm b/tests/tr/Test.pm index cf7021397..e92204f21 100644 --- a/tests/tr/Test.pm +++ b/tests/tr/Test.pm @@ -142,7 +142,7 @@ my @tv = ( # Up to coreutils-6.9.91, this would fail with the diagnostic: # tr: misaligned [:upper:] and/or [:lower:] construct -# with LC_CTYPE=en_US.iso88591. +# with LC_CTYPE=en_US.ISO-8859-1. ['tolower-F',q|'[:upper:]' '[:lower:]'|, 'A', 'a', 0], # When doing a case-converting translation with something after the @@ -151,7 +151,7 @@ my @tv = ( ['dncase-xtra',q|'[:upper:].' '[:lower:]x'|, 'ABC.', 'abcx', 0], ); -$Test::env{'tolower-F'} = ['LC_CTYPE=en_US.iso88591']; +$Test::env{'tolower-F'} = ['LC_CTYPE=en_US.ISO-8859-1']; sub test_vector { |