summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-05-04 09:57:10 +0200
committerJim Meyering <jim@meyering.net>2007-05-04 10:03:01 +0200
commitab402c29f9bbb7b6b55482e848bcb320b9eb70b9 (patch)
tree902d5bb69d593c668b8e30ff4435a51105323374 /src
parentbf8cfacd2468ada25c46a228344ab7af36515f67 (diff)
downloadcoreutils-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 'src')
-rw-r--r--src/tr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tr.c b/src/tr.c
index d4453f4da..22287e2dc 100644
--- a/src/tr.c
+++ b/src/tr.c
@@ -1,5 +1,5 @@
/* tr -- a filter to translate characters
- Copyright (C) 91, 1995-2006 Free Software Foundation, Inc.
+ Copyright (C) 91, 1995-2007 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -1816,7 +1816,6 @@ main (int argc, char **argv)
xlate[i] = ch;
}
}
- assert (get_next (s2, NULL) == -1 || truncate_set1);
}
else
{