unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Gary Mills <mills@cc.umanitoba.ca>
To: Glenn Morris <rgm@gnu.org>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: print buffer produces incorrect format with emacs-22.1 and Sol 10
Date: Sat, 16 Jun 2007 21:26:53 -0500	[thread overview]
Message-ID: <20070617022653.GA3763@cc.umanitoba.ca> (raw)
In-Reply-To: <p6lkej8h9k.fsf@fencepost.gnu.org>

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-

      reply	other threads:[~2007-06-17  2:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-11 23:20 print buffer produces incorrect format with emacs-22.1 and Sol 10 Gary Mills
2007-06-16  0:28 ` Glenn Morris
2007-06-16  2:15   ` Gary Mills
2007-06-16  2:31     ` Glenn Morris
2007-06-16  2:37       ` Gary Mills
2007-06-17  2:08         ` Glenn Morris
2007-06-17  2:26           ` Gary Mills [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070617022653.GA3763@cc.umanitoba.ca \
    --to=mills@cc.umanitoba.ca \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).