Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 6796 - gv does not open pdf files with a space in their names correctly
Summary: gv does not open pdf files with a space in their names correctly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-20 16:10 UTC by Navreet Gill
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Navreet Gill 2002-08-20 16:10:33 UTC
summary says all:
gv does not open pdf files with a space in their names correctly

*  app-text/gv
      Latest version Available: 3.5.8-r1
      Latest version Installed: 3.5.8-r1


here's an error that gets displayed

Execution of
gs -dNODISPLAY -dQUIET -sPDFname=/home/navreet/Desktop/PDFfiles/Devil Manual.pdf
-sDSCname=/home/navreet/gv_3d62ae38_1_1DevIL Manual.pdf.tmp pdf2dsc.ps -c quit
failed
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-08-22 22:45:25 UTC
first of all, this is neither a gentoo-specific nor a gv-specific bug.  The
cause of the bug is simply PEBCAK.  Try prefacing the space in the name with \ 
Comment 2 Navreet Gill 2002-08-23 03:17:52 UTC
i ALWAYS use tab completion, and it puts the "\ " in them!  Please, don't insult
me and say PEBCAK again. 

The same thing happens still!  Maybe I should report to the gv ppl, but it is
definately not the fault of the user!

navreet@192 navreet $ gv /mnt/media/navreet/Desktop/PDFfiles/noise\ improvements.pdf
Error: /undefinedfilename in (improvements.pdf)
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--  
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--  
--nostringval--   false   1   %stopped_push   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1048/1123(ro)(G)--   --dict:0/20(G)--   --dict:68/200(L)--
Current allocation mode is local
Last OS error: 2
ESP Ghostscript 7.05.3: Unrecoverable error, exit code 1
navreet@192 navreet $
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2002-08-26 09:11:36 UTC
navreet, did you hear from the upstream authors on this issue?
Comment 4 Wout Mertens (RETIRED) gentoo-dev 2002-08-30 06:05:03 UTC
Navreet:

I agree, it's definately a problem in the gv source. When you do an strace, you
can see it match the filename and then try to match filename.ps, which fails. I
tried looking at the source but it was a bit too much to follow in short time,
so I propose you tell the gv developers...

Wout.
Comment 5 Seemant Kulleen (RETIRED) gentoo-dev 2002-11-15 14:56:27 UTC
spanky, see if you can do some investigations upstream about this, please?
Comment 6 SpanKY gentoo-dev 2002-11-16 04:17:48 UTC
when i do this:
root@vapier CS4341 # gv cps\ bs.ps
it works ...
Comment 7 SpanKY gentoo-dev 2002-11-20 11:24:38 UTC
please reopen after providing this information:
emerge -V
emerge info
emerge -s ghostscript ^gv$

i'm using gv-3.5.8-r2 and ghostscript-7.05.5 and have no problems when i run 
`gv cps\ bs.ps` ...