cvs commit: src/usr.bin/tr extern.h str.c tr.c
Andrey A. Chernov
ache at FreeBSD.org
Sat Aug 2 19:23:40 PDT 2003
ache 2003/08/02 19:23:39 PDT
FreeBSD src repository
Modified files:
usr.bin/tr extern.h str.c tr.c
Log:
This patch address two problems.
1st one is relatively minor: according our own manpage, upper and lower
classes must be sorted, but currently not.
2nd one is serious:
tr '[:lower:]' '[:upper:]'
(and vice versa) currently works only if upper and lower classes
have exact the same number of elements. When it is not true, like for
many ISO8859-x locales which have bigger amount of lowercase letters,
tr may do nasty things.
See this page
http://www.opengroup.org/onlinepubs/007908799/xcu/tr.html
for detailed description of desired tr behaviour in such cases.
Revision Changes Path
1.6 +4 -1 src/usr.bin/tr/extern.h
1.17 +12 -2 src/usr.bin/tr/str.c
1.17 +54 -17 src/usr.bin/tr/tr.c
More information about the cvs-src
mailing list