bug-ghostscript
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't pipe input to gs


From: Kent Boortz
Subject: Can't pipe input to gs
Date: 04 Aug 2001 19:55:19 +0200
User-agent: Gnus/5.070099 (Pterodactyl Gnus v0.99) Emacs/20.6

I run gs 6.50 on FreeBSD 4.3 and found some problems when using gs
as an input filter for lpd. If I pipe the input to gs it will fail
for some input

  % cat foo.ps | gs -q -r300 -dSAFER -dNOPAUSE -dBATCH \
  -sDEVICE=laserjet -sPAPERSIZE=a4 -sOutputFile=outfile -

  Error: /undefined in ec
  Operand stack:
     --nostringval--
  Execution stack:
     %interp_exit   .runexec2   --nostringval--   --nostringval--   
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--   
--nostringval--   false   1   %stopped_push   1   3   %oparray_pop   1   3   
%oparray_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--  
 2   %stopped_push   --nostringval--   --nostringval--   --nostringval--
  Dictionary stack:
     --dict:989/1476(ro)(G)--   --dict:5/20(G)--   --dict:86/200(L)--   
--dict:71/86(L)--   --dict:122/160(ro)(L)--
  Current allocation mode is local
  Last OS error: 2
  AFPL Ghostscript 6.50: Unrecoverable error, exit code 1

If I read from a file there is no problem

  % gs -q -r300 -dSAFER -dNOPAUSE -dBATCH \
  -sDEVICE=laserjet -sPAPERSIZE=a4 -sOutputFile=outfile foo.ps

If I use the construct '-_' to specify the input there is no problem

  % cat foo.ps | gs -q -r300 -dSAFER -dNOPAUSE -dBATCH \
  -sDEVICE=laserjet -sPAPERSIZE=a4 -sOutputFile=outfile -_

Another odd thing, if I write the failing line piping the output as
well the error message will go to the output file, not to standard
error.

  % cat foo.ps | gs -q -r300 -dSAFER -dNOPAUSE -dBATCH \
  -sDEVICE=laserjet -sPAPERSIZE=a4 -sOutputFile=- - > outfile
  AFPL Ghostscript 6.50: Unrecoverable error, exit code 1

kent




reply via email to

[Prev in Thread] Current Thread [Next in Thread]