cvs commit: src/usr.bin/cut cut.c
Tim J. Robbins
tjr at FreeBSD.org
Fri Nov 5 10:45:24 GMT 2004
tjr 2004-11-05 10:45:23 UTC
FreeBSD src repository
Modified files:
usr.bin/cut cut.c
Log:
When the last line of a file is missing a newline in -f mode, pass a
length argument to mbrtowc() that accounts for the terminating newline
character we add automatically. Failing to do this caused the loop to
unexpectedly run out of characters and incorrectly signal an "Illegal byte
sequence" error.
Revision Changes Path
1.30 +5 -3 src/usr.bin/cut/cut.c
More information about the cvs-src
mailing list