Date: Tue, 31 Oct 2006 03:30:12 GMT From: Garance A Drosehn <gad@FreeBSD.org> To: gad@FreeBSD.org, freebsd-bugs@FreeBSD.org, gad@FreeBSD.org Subject: Re: bin/104731: [patch] missing newline in lpq output Message-ID: <200610310330.k9V3UCP5081179@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
Synopsis: [patch] missing newline in lpq output Responsible-Changed-From-To: freebsd-bugs->gad Responsible-Changed-By: gad Responsible-Changed-When: Tue Oct 31 03:26:13 UTC 2006 Responsible-Changed-Why: I'll look into this, and do something similar to your lpq-patch2.txt, although it won't be quite the same. Note that if the while(i=read()) loop is executed more than once, then your lastChar check may write out an extra '\n' line. Also, when I've seen this problem, I've also seen that the remote-host is in fact sending back '\r' characters, and I'd want to do something a bit more intelligent in that case. http://www.freebsd.org/cgi/query-pr.cgi?pr=104731
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610310330.k9V3UCP5081179>