From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: shell-quote-argument and multibyte Date: Tue, 15 Apr 2003 22:16:48 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200304151316.WAA24268@etlken.m17n.org> References: <3E99C876.3000809@math.ku.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1050412911 14448 80.91.224.249 (15 Apr 2003 13:21:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 15 Apr 2003 13:21:51 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Apr 15 15:21:46 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 195QNe-0003kQ-00 for ; Tue, 15 Apr 2003 15:21:46 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 195QPW-0000Xp-00 for ; Tue, 15 Apr 2003 15:23:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 195QMw-0006K3-01 for emacs-devel@quimby.gnus.org; Tue, 15 Apr 2003 09:21:02 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 195QLw-00060m-00 for emacs-devel@gnu.org; Tue, 15 Apr 2003 09:20:00 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 195QKK-0004vv-00 for emacs-devel@gnu.org; Tue, 15 Apr 2003 09:18:23 -0400 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 195QJ1-0003RJ-00 for emacs-devel@gnu.org; Tue, 15 Apr 2003 09:17:00 -0400 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2])h3FDGno29812; Tue, 15 Apr 2003 22:16:49 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) h3FDGmA06504; Tue, 15 Apr 2003 22:16:48 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id WAA24268; Tue, 15 Apr 2003 22:16:48 +0900 (JST) Original-To: larsh@math.ku.dk, Benjamin.Riefenstahl@epost.de In-reply-to: (message from Benjamin Riefenstahl on 14 Apr 2003 00:02:17 +0200) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:13241 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13241 In article , Benjamin Riefenstahl writes: > Hi Lars, > Lars Hansen writes: >> I dired one can specify a list of external viewers. This is a nice >> new feature. However, there is a problem, at least on Windows, when >> there are special characters in the file name. I don't know where >> the problem should be fixed, but I do know that it disapears if >> string-make-unibyte is called on ARGUMENT in shell-quote-argument. By default, process arguements (including the filename in the above case) are encoded by: (cdr default-process-coding-system) And usually, it is the same as default-file-name-coding-system. So, if it doesn't work, it means that something is wrong in setting up coding systems on Windows. Please show me the result of C-h C RET. Benjamin Riefenstahl writes: > I would guess you rather want something like this to be generic: > (decode-coding-string ARGUMENT > (or file-name-coding-system > default-file-name-coding-system)) No. At least "decode" must be actually "encode". And, it shouldn't be done in shell-quote-argument. Such an encoding should be done only for file names. --- Ken'ichi HANDA handa@m17n.org