From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Daniel Bastos Newsgroups: gmane.emacs.help Subject: Re: on eshell's encoding Date: Tue, 02 Aug 2016 10:24:32 -0300 Organization: Aioe.org NNTP Server Message-ID: <8637mnwbfz.fsf@toledo.com> References: <86fuqw5vd8.fsf@toledo.com> <864m7c5oqc.fsf@toledo.com> <86zip3uweo.fsf@toledo.com> NNTP-Posting-Host: blaine Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1470144435 21474 195.159.176.226 (2 Aug 2016 13:27:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 2 Aug 2016 13:27:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 02 15:27:12 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bUZix-0005RG-BE for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Aug 2016 15:27:11 +0200 Original-Received: from localhost ([::1]:56632 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUZit-0000Ad-Om for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Aug 2016 09:27:07 -0400 Original-Path: usenet.stanford.edu!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 39 Original-NNTP-Posting-Host: 4aaubcU35PhYo9piAI7jmw.user.gioia.aioe.org Original-X-Complaints-To: abuse@aioe.org Cancel-Lock: sha1:9gQv9K50Pb6OfEZ2K1M0OmE68dA= X-Notice: Filtered by postfilter v. 0.8.2 Original-Xref: usenet.stanford.edu gnu.emacs.help:218701 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111043 Archived-At: Eli Zaretskii writes: >> From: Daniel Bastos >> Date: Wed, 27 Jul 2016 08:56:31 -0300 >> >> >> You're right. This is MS-Windows. But I thought MS-Windows would not >> >> interfere here. Why does it interfere? I thought the messages would go >> >> straight into git's ARGV. >> > >> > How can it go "straight"? >> >> I meant not being messed with. I don't know anything about MS-Windows. >> In UNIX the creation of a new process by a shell is likely to call >> execve, which won't touch the caller strings passed in through the >> argv-argument. > > Like I said, Eshell is not a shell, it just pretends to be one. It > will eventually cause execve, or something like it, to be called, but > before it, the command-line arguments will be encoded in the locale's > encoding, since that's what execve expects. This is true on Windows > and on Unix alike. That's true of EMACS. You're saying EMACS always encodes the command line arguments. But what I said about UNIX is that whatever execve receives in argv[] will remain as such, which apparently is not the MS-Windows behavior. Precisely: if on UNIX I use EMACS to call /program/ with argv[] encoded in X, then /program/ will definitely receive its argv[] as prepared by EMACS. That does not happen on MS-Windows. EMACS encodes the command line in utf-8, but /program/ receives it in another encoding. This surprises me. MS-Windows should not care what a program puts in argv[]. I think it violates an important principle: an operating system should help programs to communicate, but it should not care what they're saying to each other. That's an important principle UNIX has given us. Even if I'm not totally correct now, I'm certainly better educated. Thank you.