From: Pascal Quesseveur <pquessev@gmail.com>
To: ding@gnus.org
Subject: Problem opening a MIME attachment
Date: Fri, 16 Feb 2024 15:38:55 +0100 [thread overview]
Message-ID: <86frxsv5hc.fsf@gmail.com> (raw)
Hello,
I encounter a problem opening a MIME attachment with an external
viewer with emacs 29.1 (Gnus v5.13) on Windows (I had the same problem
with version 28.1). Problem occurs when the filename has characters
other than 7-bit ASCII. I have not found any trace of this problem,
which surprises me.
Content-Type is defined as follows:
Content-Type: message/external-body;
name="c:/somedirs/XXX =?iso-8859-1?Q?R=E9<snipped>";
access-type=LOCAL-FILE
The viewer is launched in mm-display-external by start-process with
following args:
- path to cmdproxy.exe
- -c
- path to the viewer exe and the attachment filename encoded in
iso-8859-1
The viewer fails to open the file. The parameter received by the
viewer is not encoded in iso-8859-1: 0x160 for è, 0x201A for é, ... It
appears the problem disappear when I set coding-system-for-write to
buffer-file-coding-system before calling start-process but I am not
sure this is the correct fix.
--
Pascal Quesseveur
pquessev@gmail.com
reply other threads:[~2024-02-16 15:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86frxsv5hc.fsf@gmail.com \
--to=pquessev@gmail.com \
--cc=ding@gnus.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.
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 NNTP newsgroup(s).