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: Tue, 16 May 2006 12:34:30 +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 1147754092 1261 80.91.229.2 (16 May 2006 04:34:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 May 2006 04:34:52 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 16 06:34:47 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 1FfrGg-0000jA-VK for ged-emacs-devel@m.gmane.org; Tue, 16 May 2006 06:34:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FfrGg-0001kf-EC for ged-emacs-devel@m.gmane.org; Tue, 16 May 2006 00:34:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FfrGV-0001kM-2j for emacs-devel@gnu.org; Tue, 16 May 2006 00:34:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FfrGS-0001jl-MV for emacs-devel@gnu.org; Tue, 16 May 2006 00:34:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FfrGS-0001ji-Gp for emacs-devel@gnu.org; Tue, 16 May 2006 00:34:32 -0400 Original-Received: from [64.4.26.38] (helo=hotmail.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FfrJ1-00055x-B9 for emacs-devel@gnu.org; Tue, 16 May 2006 00:37:11 -0400 Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 15 May 2006 21:34:31 -0700 Original-Received: from 64.4.26.200 by by112fd.bay112.hotmail.msn.com with HTTP; Tue, 16 May 2006 04:34:30 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: 16 May 2006 04:34:31.0399 (UTC) FILETIME=[06658770:01C678A2] 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:54555 Archived-At: >From: Kenichi Handa >To: "Herbert Euler" >CC: emacs-devel@gnu.org >Subject: Re: Fcall_process: wrong conversion >Date: Tue, 16 May 2006 13:10:30 +0900 > >I think there's no locale that uses utf-16, and it's >impossible to support such a locale because most of basic >libc functions that accept a filename require that it is >terminated by NULL. Oh, I see my fault. At the same time, I see whether a string is unibyte-string is tested with STRING_MULTIBYTE (line 674 to 676, lisp.h): /* Nonzero if STR is a multibyte string. */ #define STRING_MULTIBYTE(STR) \ (XSTRING (STR)->size_byte >= 0) I don't know how `size_byte' is set. Is it done by scanning a string and watching the range of each byte (or some bytes) of the string? If it is in this case and we assume that no command argument will be in UTF-16 encode, disabling argument encoding for unibyte-string seems the best solution. Regards, Guanpeng Xu _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/