From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Herbert Euler" Newsgroups: gmane.emacs.devel Subject: Re: Fcall_process: wrong conversion Date: Thu, 18 May 2006 14:40:19 +0800 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: sea.gmane.org 1147934553 16670 80.91.229.2 (18 May 2006 06:42:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 18 May 2006 06:42:33 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 18 08:42:28 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FgcD8-0003Ko-0L for ged-emacs-devel@m.gmane.org; Thu, 18 May 2006 08:42:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FgcD5-0000EW-W5 for ged-emacs-devel@m.gmane.org; Thu, 18 May 2006 02:42:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FgcCm-0000CE-Vl for emacs-devel@gnu.org; Thu, 18 May 2006 02:41:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FgcCi-0000BJ-7N for emacs-devel@gnu.org; Thu, 18 May 2006 02:41:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FgcCi-0000BG-3G for emacs-devel@gnu.org; Thu, 18 May 2006 02:41:48 -0400 Original-Received: from [199.232.41.67] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FgcFk-0007lM-0Y for emacs-devel@gnu.org; Thu, 18 May 2006 02:44:56 -0400 Original-Received: from [64.4.26.25] (helo=hotmail.com) by mx20.gnu.org with esmtp (Exim 4.52) id 1FgcCL-00065m-Tm for emacs-devel@gnu.org; Thu, 18 May 2006 02:41:26 -0400 Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 17 May 2006 23:40:21 -0700 Original-Received: from 64.4.26.200 by by112fd.bay112.hotmail.msn.com with HTTP; Thu, 18 May 2006 06:40:19 GMT X-Originating-IP: [216.145.54.158] X-Originating-Email: [herberteuler@hotmail.com] X-Sender: herberteuler@hotmail.com In-Reply-To: Original-To: handa@m17n.org X-OriginalArrivalTime: 18 May 2006 06:40:21.0385 (UTC) FILETIME=[EF5D7790:01C67A45] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:54691 Archived-At: >From: Kenichi Handa >To: "Herbert Euler" >CC: emacs-devel@gnu.org >Subject: Re: Fcall_process: wrong conversion >Date: Thu, 18 May 2006 15:26:54 +0900 > > >> > I.e. if the file is in japanese-shift-jis, but command argument is in > >> > chinese-gbk, encoding arguments will make sure all characters are in > >> > japanese-shift-jis, won't it? > >> > >> I don't understand what "if ..." part actually means. Who > >> makes command argument in chinese-gbk? > > > For example, I wrote a lisp command which uses `call-process' and > > contains characters in chinese-gbk as arguments. I meant, when > > I apply this command to a japanese-shift-jis file, `call-process' will > > encode the chinese-gbk characters to japanese-shift-jis in background, > > won't it? > >It's hard to understand what you mean. What do you mean by >"apply this command to ... file"? Does it mean that you >give the file name to call-process as INFILE argument? But, >how does it result in "encode the chinese-gbk characters to >japanese-shift-jis"? Emacs doesn't detect the encoding of >INFILE. So how does Emacs know about `japanese-shift-jis' >first of all? > >And first of all, CVS Emacs doesn't have chinese-gbk coding >system. Are you talking about the behavior of >emacs-unicode-2? Encodings here are just examples; I should use them as encoding A and B. And my opinion is wrong, I don't know all the real behavior of `call-process', I thought arguments will be encoded to the file encoding. Regards, Guanpeng Xu _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/