GNU bug report logs - #32989
26.1; Opening PDF attachments in Gnus with doc-view-mode causes error on Windows

Previous Next

Package: emacs;

Reported by: Jordan Wilson <jordan.t.wilson <at> gmx.com>

Date: Mon, 8 Oct 2018 15:31:02 UTC

Severity: normal

Found in version 26.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 32989 <at> debbugs.gnu.org (full text, mbox):

From: Jordan Wilson <jordan.t.wilson <at> gmx.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 32989 <at> debbugs.gnu.org
Subject: Re: bug#32989: 26.1;
 Opening PDF attachments in Gnus with doc-view-mode causes error on
 Windows
Date: Wed, 10 Oct 2018 11:45:57 +0100
[Message part 1 (text/plain, inline)]
On 2018-10-08 (Mon) at 23:02 (ZZZ), Eli Zaretskii <eliz <at> gnu.org> wrote:
>> From: Jordan Wilson <jordan.t.wilson <at> gmx.com>
>> Date: Mon, 08 Oct 2018 15:44:55 +0100
>> 
>>   File error: "Opening output file", "Invalid argument", "c:/Users/Jordan/Emacs/.cache/docview-cache/ *mm*-012345" 
>> 
>> this leaves a buffer showing the file literally. If I rename that buffer
>> to something not containing an asterisk, it displays fine when running
>> "doc-view-mode". Windows apparently can't handle asterisks in
>> directory/file names.
>
> Windows doesn't allow '*' (and a few other characters) in any file
> name, not just in directory name.  Gnus should run the file name
> through convert-standard-filename to get something that is guaranteed
> to work on any filesystem.
Looking, it seems to be on doc-view's side -- if a buffer isn't
associated with a file, it uses the buffer name for the file's cache
directory. Here's a patch to the 26 and trunk branches of doc-view.el to
run the file names through `convert-standard-filename'. It fixes the
problem for me, at least.
[doc-view-26.diff (text/x-patch, attachment)]
[doc-view-trunk.diff (text/x-patch, attachment)]
[Message part 4 (text/plain, inline)]
-- 
Jordan Wilson
    Sent from Gnus v5.13, GNU Emacs 26.1

This bug report was last modified 6 years and 203 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.