From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69934 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Problem viewing attachments Date: Mon, 16 Aug 2010 12:54:12 +0900 Organization: Emacsen advocacy group Message-ID: References: <87hbixz8lo.fsf@newton.homeunix.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1281930985 24193 80.91.229.12 (16 Aug 2010 03:56:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 16 Aug 2010 03:56:25 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M18320@lists.math.uh.edu Mon Aug 16 05:56:23 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OkqoB-0000cj-4T for ding-account@gmane.org; Mon, 16 Aug 2010 05:56:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Okqmn-00036u-3i; Sun, 15 Aug 2010 22:54:57 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Okqml-00036c-Ae for ding@lists.math.uh.edu; Sun, 15 Aug 2010 22:54:55 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Okqmj-00071u-FF for ding@lists.math.uh.edu; Sun, 15 Aug 2010 22:54:54 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1Okqmi-0005zt-00 for ; Mon, 16 Aug 2010 05:54:52 +0200 Original-Received: from localhost ([127.0.0.1]:36656) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1Okqm8-0007AE-Px for ding@gnus.org; Sun, 15 Aug 2010 22:54:17 -0500 X-Hashcash: 1:20:100816:ding@gnus.org::eDxbuHAqCm/0IWVV:00002rvP X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:5yaqaktATTU/SbdqoqOkcDcsvJs= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -0.0 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69934 Archived-At: Katsumi Yamaoka wrote: > Jose A. Ortega Ruiz wrote: >> When i try to view an attachment (using, e.g., K V) whose name contains >> white spaces (no matter its mime type), the displaying function fails >> silently (it seems to be calling the external program just fine, but >> with a wrong or non-existent file to display). > I'm going to fix it tomorrow (in Japan). Thanks for pointing it out. Hmm, Gnus looks to use `shell-quote-argument' to quote special characters in file names for all cases. What kind of attachment causes it? And what external command is used then? My best guess is that the command is a shell script which passes a file name to another command without quoting the file name. For instance: #!/bin/sh COMMAND $1 but it should be: #!/bin/sh COMMAND "$1" In particular, the shell script named "xdg-open" is troublesome for the use with Emacs no matter whether a name of file to play contains SPCs or not. Though it may not be your case.