From af5d0c363a52e787a4311a11f035209eecdc4115 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 21 Oct 2007 12:38:33 +0200 Subject: tr: do not reject an unmatched [:lower:] or [:upper:] in SET1. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * NEWS: Mention this. * src/tr.c (get_next) [RE_CHAR_CLASS]: Don't skip the loop when processing [:lower:] and [:upper:]. (main): Require [:lower:] or [:upper:] in SET1 only when when one of those is specified in SET2. * tests/tr/Test.pm: Add tests for this fix. Reported by Per Starbäck. Signed-off-by: Jim Meyering --- NEWS | 2 ++ 1 file changed, 2 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index beda7f860..8fb3f50d9 100644 --- a/NEWS +++ b/NEWS @@ -148,6 +148,8 @@ GNU coreutils NEWS -*- outline -*- tr -c no longer aborts when translating with Set2 larger than the complement of Set1. [introduced with the original version, in 1992] + tr no longer rejects an unmatched [:lower:] or [:upper:] in SET1. + * Noteworthy changes in release 6.9 (2007-03-22) [stable] -- cgit v1.2.3-70-g09d2