diff options
author | Jim Meyering <jim@meyering.net> | 2007-05-04 09:57:10 +0200 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2007-05-04 10:03:01 +0200 |
commit | ab402c29f9bbb7b6b55482e848bcb320b9eb70b9 (patch) | |
tree | 902d5bb69d593c668b8e30ff4435a51105323374 /tests/tr/Test.pm | |
parent | bf8cfacd2468ada25c46a228344ab7af36515f67 (diff) | |
download | coreutils-ab402c29f9bbb7b6b55482e848bcb320b9eb70b9.tar.xz |
tr -c: don't abort when translating with S2 larger than complement of S1
* src/tr.c (main): Remove invalid assertion triggered by e.g.,
tr -c a '[b*256]'. There's nothing wrong with having Set2 larger
than Set1. Reported by Guntram Blohm.
* tests/tr/Test.pm (no-abort-1): Test for the above.
* NEWS: Mention this bug fix.
* THANKS: Add Guntram Blohm.
Diffstat (limited to 'tests/tr/Test.pm')
-rwxr-xr-x | tests/tr/Test.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/tr/Test.pm b/tests/tr/Test.pm index 3475740e0..625b47b98 100755 --- a/tests/tr/Test.pm +++ b/tests/tr/Test.pm @@ -1,6 +1,6 @@ # Test "tr". -# Copyright (C) 1996, 1997, 2000, 2002, 2004, 2005, 2006 Free Software +# Copyright (C) 1996, 1997, 2000, 2002, 2004-2007 Free Software # Foundation, Inc. # This program is free software; you can redistribute it and/or modify @@ -135,6 +135,8 @@ my @tv = ( # From Glenn Fowler. ['fowler-1', q|ah -H|, 'aha', '-H-', 0], +# Prior to coreutils-6.10, this would provoke a failed assertion. +['no-abort-1', '-c ' . q|a '[b*256]'|, 'abc', 'abb', 0], ); sub test_vector |