unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Marcin Borkowski <mbork@mbork.pl>
To: aikipooh@gmail.com (Юрий Пухальский)
Cc: 18981@debbugs.gnu.org
Subject: bug#18981: 24.3; gs and filenames with percent signs
Date: Fri, 04 Mar 2016 19:41:52 +0100	[thread overview]
Message-ID: <87io12m6fj.fsf@mbork.pl> (raw)
In-Reply-To: <87r3xf5l50.fsf@gmail.com> ("Юрий Пухальский"'s message of "Fri, 07 Nov 2014 14:02:19 +0300")

On 2014-11-07, at 14:02, aikipooh@gmail.com (Юрий Пухальский) wrote:

> I've a file named: A13+Datasheet+-+v1.12+%282012-03-29%29.pdf
> When I invoke docview (hitting return in dired), it doesn't work because
> of percent signs in the file name: DocView: process pdf/ps->png changed status to exited abnormally with code 1.
> Tracing docview I get:
>
> 1 -> doc-view-start-process: name="pdf/ps->png" program="gs" args=("-dSAFER" "-dNOPAUSE" "-sDEVICE=png16m" "-dTextAlphaBits=4" "-dBATCH" "-dGraphicsAlphaBits=4" "-dQUIET" "-r100" "-sOutputFile=/tmp/docview1000/A13+Datasheet+-+v1.12+%282012-03-29%29.pdf-1dc1b37082c745e206fc9363f828eb08/page-%d.png" "/home/pooh/work/srvdoc/A13+Datasheet+-+v1.12+%282012-03-29%29.pdf") callback=#[0 "\302\303\300!\304\305\306\307 \"\304\310%\210	\203.\311	!\210\304\312p\313\"\207" [100 doc-view-current-timer write-region prin1-to-string nil expand-file-name "resolution.el" doc-view-current-cache-dir silently cancel-timer doc-view-display force] 6 "
>
> (fn)"]
>
> I see the percent signs from the filename verbatim in gs invocation, but
> it's not allowed as they are (I think) getting to the printf-like
> function (for %d in batches), and therefore must be presented as %%.
>
> So the fix is easy: when preparing the invocation string for gs, change
> single percent signs to double.

Hi Юрий,

I know it's been some time since your report, but could you please check
whether this bug is still present?  I tried to reproduce it (with a file
called foo%.pdf, on Fedora), and it seemed to work just fine.

Best,

-- 
Marcin





  reply	other threads:[~2016-03-04 18:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-07 11:02 bug#18981: 24.3; gs and filenames with percent signs Юрий Пухальский
2016-03-04 18:41 ` Marcin Borkowski [this message]
2016-03-04 21:03   ` Юрий Пухальский
2016-03-04 22:00     ` Marcin Borkowski

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=87io12m6fj.fsf@mbork.pl \
    --to=mbork@mbork.pl \
    --cc=18981@debbugs.gnu.org \
    --cc=aikipooh@gmail.com \
    /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).