From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: on eshell's encoding Date: Tue, 26 Jul 2016 18:05:06 +0300 Message-ID: <837fc8tp7h.fsf@gnu.org> 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 1469545562 27453 80.91.229.3 (26 Jul 2016 15:06:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Jul 2016 15:06:02 +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 17:05:57 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 1bS3vf-0001ar-Va for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Jul 2016 17:05:56 +0200 Original-Received: from localhost ([::1]:40430 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bS3vf-0004IQ-Af for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Jul 2016 11:05:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bS3v9-0004I5-E4 for help-gnu-emacs@gnu.org; Tue, 26 Jul 2016 11:05:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bS3v5-0006pG-2T for help-gnu-emacs@gnu.org; Tue, 26 Jul 2016 11:05:22 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41033) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bS3v4-0006pB-VE for help-gnu-emacs@gnu.org; Tue, 26 Jul 2016 11:05:18 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1696 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bS3v3-00059S-9b for help-gnu-emacs@gnu.org; Tue, 26 Jul 2016 11:05:17 -0400 In-reply-to: <86fuqw5vd8.fsf@toledo.com> (message from Daniel Bastos on Tue, 26 Jul 2016 11:25:55 -0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:110934 Archived-At: > 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. 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).