tr: do not reject an unmatched [:lower:] or [:upper:] in SET1.
authorJim Meyering <meyering@redhat.com>
Sun, 21 Oct 2007 10:38:33 +0000 (12:38 +0200)
committerJim Meyering <meyering@redhat.com>
Sun, 21 Oct 2007 12:01:28 +0000 (14:01 +0200)
commitaf5d0c363a52e787a4311a11f035209eecdc4115
tree30ee17355928ee3ba04a78d66b2f290d8a47e159
parentc365bafa815695e187089ab711eca4ca55282b0d
tr: do not reject an unmatched [:lower:] or [:upper:] in SET1.

* 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 <meyering@redhat.com>
ChangeLog
NEWS
THANKS
src/tr.c
tests/tr/Test.pm