Date: Sat, 6 Mar 2010 19:21:57 +0000 (UTC) From: "Andrey A. Chernov" <ache@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/usr.bin/uniq uniq.c Message-ID: <201003061922.o26JMDPs023400@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ache 2010-03-06 19:21:57 UTC FreeBSD src repository Modified files: usr.bin/uniq uniq.c Log: SVN rev 204803 on 2010-03-06 19:21:57Z by ache 1) Rewrite input processing to not exit with error on the first EILSEQ found in the input data but fallback to "binary equal" check instead. POSIX says: "The input file shall be a text file", nothing more, so the text file with illegal sequence is valid input. BTW, GNU sort does not fails on EILSEQ too. 2) Speedup input processing a bit in complex cases like skipping fields, chars or ignore case. 3) Enforce the implied LINE_MAX limit (from POSIX definition of "text file" and POSIX uniq(1) description). Revision Changes Path 1.32 +68 -106 src/usr.bin/uniq/uniq.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003061922.o26JMDPs023400>