From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gary Mills Newsgroups: gmane.emacs.bugs Subject: Re: print buffer produces incorrect format with emacs-22.1 and Sol 10 Date: Sat, 16 Jun 2007 21:26:53 -0500 Message-ID: <20070617022653.GA3763@cc.umanitoba.ca> References: <200706112320.l5BNKItZ005315@eltanin.cc.umanitoba.ca> <20070616021526.GA23880@cc.umanitoba.ca> <20070616023702.GA11923@cc.umanitoba.ca> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1182047232 8970 80.91.229.12 (17 Jun 2007 02:27:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 17 Jun 2007 02:27:12 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 17 04:27:11 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HzkTu-0005xN-8J for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Jun 2007 04:27:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzkTt-0005XU-Iz for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Jun 2007 22:27:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzkTq-0005Vd-Ss for bug-gnu-emacs@gnu.org; Sat, 16 Jun 2007 22:27:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzkTq-0005V0-98 for bug-gnu-emacs@gnu.org; Sat, 16 Jun 2007 22:27:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzkTq-0005Up-6H for bug-gnu-emacs@gnu.org; Sat, 16 Jun 2007 22:27:06 -0400 Original-Received: from electra.cc.umanitoba.ca ([130.179.16.23]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HzkTp-0002tZ-5R; Sat, 16 Jun 2007 22:27:05 -0400 Original-Received: from deneb.cc.umanitoba.ca (mills@deneb.cc.umanitoba.ca [130.179.16.69]) by electra.cc.umanitoba.ca (8.13.0/8.13.0) with ESMTP id l5H2Qvmb019918; Sat, 16 Jun 2007 21:27:01 -0500 (CDT) Original-Received: (from mills@localhost) by deneb.cc.umanitoba.ca (8.13.8+Sun/8.12.2) id l5H2QrN1007072; Sat, 16 Jun 2007 21:26:53 -0500 (CDT) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.10i X-detected-kernel: Solaris 9 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:15919 Archived-At: On Sat, Jun 16, 2007 at 10:08:23PM -0400, Glenn Morris wrote: > > Can you confirm it works if you use this: > > (setq lpr-page-header-switches '("-h" "%s" "-F")) Yes, it works... ==> /var/spool/print/dfA193S0106080020b3a84b <== Jun 16 21:13 2007 ascii Emacs buffer Page 1 |000 nul|001 soh|002 stx|003 etx|004 eot|005 enq|006 ack|007 bel| |010 bs |011 ht |012 nl |013 vt |014 np |015 cr |016 so |017 si | |020 dle|021 dc1|022 dc2|023 dc3|024 dc4|025 nak|026 syn|027 etb| |030 can|031 em |032 sub|033 esc|034 fs |035 gs |036 rs |037 us | |040 sp |041 ! |042 " |043 # |044 $ |045 % |046 & |047 ' | Okay, that was too simple! The same peculiar thing happens on the command line: $ pr "-h ascii Emacs buffer" -F /usr/pub/ascii | head Jan 21 17:26 2005 a Emacbuff Page 1 |000 nul|001 soh|002 stx|003 etx|004 eot|005 enq|006 ack|007 bel| |010 bs |011 ht |012 nl |013 vt |014 np |015 c |016 so |017 si | |020 dle|021 dc1|022 dc2|023 dc3|024 dc4|025 nak|026 syn|027 etb| |030 can|031 em |032 sub|033 esc|034 fs |035 gs |036 s |037 us | |040 sp |041 ! |042 " |043 # |044 $ |045 % |046 & |047 ' | I'll have to go look at the source to see why it does that. It makes no sense at all to interpret some characters as flags and the rest as the header. -- -Gary Mills- -Unix Support- -U of M Academic Computing and Networking-