From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Bastos Newsgroups: gmane.emacs.help Subject: Re: on eshell's encoding Date: Tue, 26 Jul 2016 13:49:15 -0300 Organization: Aioe.org NNTP Server Message-ID: <864m7c5oqc.fsf@toledo.com> References: <86fuqw5vd8.fsf@toledo.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1469551840 2119 80.91.229.3 (26 Jul 2016 16:50:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Jul 2016 16:50:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 26 18:50:35 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bS5Yv-00063D-0e for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Jul 2016 18:50:33 +0200 Original-Received: from localhost ([::1]:41234 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bS5Yq-00087K-V7 for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Jul 2016 12:50:28 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!1.us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-NNTP-Posting-Host: 4aaubcU35PhYo9piAI7jmw.user.gioia.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) Cancel-Lock: sha1:YbF7Ez0b0d8at5wmdOo3461TAug= X-Notice: Filtered by postfilter v. 0.8.2 Original-Xref: usenet.stanford.edu gnu.emacs.help:218628 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:110939 Archived-At: Hi, Eli. Eli Zaretskii writes: >> From: Daniel Bastos >> Date: Tue, 26 Jul 2016 11:25:55 -0300 >> >> I'm running eshell. My current modeline is >> >> U\--- *eshell* [...] >> >> But after a git commit, I get garbage out from my utf-8 string given in >> the command line. It must be git's fault. Do you confirm? (I don't >> have the same problem if I input the string in a file.) >> >> %gc -a -m 'Função pra esvaziar a fila.' >> [cooper 95bca82] Função pra esvaziar a fila. >> 2 files changed, 5 insertions(+), 1 deletion(-) >> % > > Is this on MS-Windows? If so, you cannot invoke programs from Emacs > with command-line arguments encoded in anything but the system > codepage. And UTF-8 cannot be a system codepage on Windows. 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. Does Windows read() and write() interpret the bytes? > I suggest to put the commit message in a file and use the -F switch to > "git commit". Or use the built-in VC commands, they will do this > automatically for you (if you have Emacs 25). If I put the commit message in a file, even without using -F switch, it works as expected. (*) Version GNU Emacs 24.3.1 (i386-mingw-nt6.2.9200) of 2013-03-17 on MARVIN