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:14:18 +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 1147932894 12104 80.91.229.2 (18 May 2006 06:14:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 18 May 2006 06:14:54 +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:14:50 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 1FgbmT-0007NW-K3 for ged-emacs-devel@m.gmane.org; Thu, 18 May 2006 08:14:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FgbmS-0006i5-QV for ged-emacs-devel@m.gmane.org; Thu, 18 May 2006 02:14:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FgbmF-0006hy-AS for emacs-devel@gnu.org; Thu, 18 May 2006 02:14:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FgbmC-0006hl-MD for emacs-devel@gnu.org; Thu, 18 May 2006 02:14:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FgbmC-0006hi-IK for emacs-devel@gnu.org; Thu, 18 May 2006 02:14:24 -0400 Original-Received: from [64.4.26.23] (helo=hotmail.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FgbpE-0002cF-6u for emacs-devel@gnu.org; Thu, 18 May 2006 02:17:32 -0400 Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 17 May 2006 23:14:23 -0700 Original-Received: from 64.4.26.200 by by112fd.bay112.hotmail.msn.com with HTTP; Thu, 18 May 2006 06:14:18 GMT X-Originating-IP: [216.145.54.158] X-Originating-Email: [herberteuler@hotmail.com] X-Sender: herberteuler@hotmail.com In-Reply-To: Original-To: herberteuler@hotmail.com X-OriginalArrivalTime: 18 May 2006 06:14:23.0425 (UTC) FILETIME=[4EBFA310:01C67A42] 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:54689 Archived-At: >From: "Herbert Euler" >To: handa@m17n.org >CC: emacs-devel@gnu.org >Subject: Re: Fcall_process: wrong conversion >Date: Thu, 18 May 2006 14:07:04 +0800 > >In my opinion, most programs seem not to require different >encoding for arguments and file. Think about a program >requires Japanese relative encoding as file encoding and >Chinese relative encoding as argument encoding. If I provide >simplified Chinese characters, which are not in the specific >Japanese encoding, in command arguments, this program >seems hardly taking a acceptable behavior, even if I execute >the program by typing it in Shell. > >Namely, cross-encoding would make sense only if all the >different encodings contain all characters involved and >represent them the same way in an execution. In other >conditions, users can't expect acceptable result. This >unique condition is likely what already exists in the current >code, except converting to utf-16. There do be exceptions, such as programs converting arguments internally. But even these programs are not likely to use more than two encodings as argument encoding. To me, it seems that these programs are not generally used for general purposes, so when `call-process' is applied to these programs it's the caller's responsibility to adjust encoding. Regards, Guanpeng Xu _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/