Date: Wed, 24 Jun 2009 16:57:33 +0000 (UTC) From: Garance A Drosehn <gad@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/usr.sbin/lpr/common_source displayq.c Message-ID: <200906241657.n5OGvqiq032386@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
gad 2009-06-24 16:57:33 UTC FreeBSD src repository Modified files: usr.sbin/lpr/common_source displayq.c Log: SVN rev 194859 on 2009-06-24 16:57:33Z by gad Fix end-of-line issues that can come up when `lpq' reads information about a queue from a remote host. That remote host may use \r, \r\n, or \n\r as the line-ending character. In some cases the remote host will write a single line of information without *any* EOL sequence. Translate all the non-unix EOL's to the standard newline, and make sure the final line includes a terminating newline. Logic is also added to translate all unprintable characters to '?', but that is #if-ed out for now. PR: bin/104731 MFC after: 3 weeks Revision Changes Path 1.27 +102 -1 src/usr.sbin/lpr/common_source/displayq.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906241657.n5OGvqiq032386>