From ab402c29f9bbb7b6b55482e848bcb320b9eb70b9 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 4 May 2007 09:57:10 +0200 Subject: 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. --- src/tr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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 { -- cgit v1.2.3-54-g00ecf