From owner-cvs-src-old@FreeBSD.ORG Wed Jun 24 16:57:52 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9031D10656AC for ; Wed, 24 Jun 2009 16:57:52 +0000 (UTC) (envelope-from gad@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 7CA8A8FC23 for ; Wed, 24 Jun 2009 16:57:52 +0000 (UTC) (envelope-from gad@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n5OGvqUL032387 for ; Wed, 24 Jun 2009 16:57:52 GMT (envelope-from gad@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n5OGvqiq032386 for cvs-src-old@freebsd.org; Wed, 24 Jun 2009 16:57:52 GMT (envelope-from gad@repoman.freebsd.org) Message-Id: <200906241657.n5OGvqiq032386@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to gad@repoman.freebsd.org using -f From: Garance A Drosehn Date: Wed, 24 Jun 2009 16:57:33 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.sbin/lpr/common_source displayq.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jun 2009 16:57:52 -0000 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