From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: on ESHELL, utf-8 and fossil command-line commit message Date: Sat, 01 Oct 2022 21:41:58 +0300 Message-ID: <83y1tz9yix.fsf@gnu.org> References: <86wn9jd3sw.fsf@protonmail.com> <83czbbbn3k.fsf@gnu.org> <86k05jcs7t.fsf@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26177"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 01 20:43:02 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oehS1-0006di-A3 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 01 Oct 2022 20:43:01 +0200 Original-Received: from localhost ([::1]:52762 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oehRz-0008Ge-Qf for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 01 Oct 2022 14:42:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47696) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oehRF-0008GV-M7 for help-gnu-emacs@gnu.org; Sat, 01 Oct 2022 14:42:13 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45194) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oehRF-00004t-5o for help-gnu-emacs@gnu.org; Sat, 01 Oct 2022 14:42:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=vQ2XvBKsZbEK1XDccFIcx2jO8Lx8pJPp8HEL7Zoob7A=; b=hIVgNiJhYoXgA0Hs2Zyy 8ByIEVAz0jYcpFXBzNZnWIxVcWrsG5U7v/z19mULnb3T/XSkRCVUsJ0DQR/aC2i7LWjk55lVVJw68 coPUg7j+xJ1zudygOKOJFFO6PBO89eHNZMlhVfkSArGsv0JDPODB7oDCwR+snT3tdJRC/gC07r85q KF6Zyw/2wY4z5O6V/YNxEs5WOWGlKOPz1urSMb1Eg3agF5vT5qHuNKMZeSVEPf+7RJvBSkrOa0YGc J6v7rhAy6noGC4VyDrvceeavVyo7KfdyF2E+vKEGJ+zjLxuJX0ZmBLeLebrSlT+whdQLTl2/AaROG FJ7ArzU73bYfvA==; Original-Received: from [87.69.77.57] (port=2197 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oehRB-0006V4-3M for help-gnu-emacs@gnu.org; Sat, 01 Oct 2022 14:42:12 -0400 In-Reply-To: <86k05jcs7t.fsf@protonmail.com> (message from Wayne Harris via Users list for the GNU Emacs text editor on Sat, 01 Oct 2022 15:29:58 -0300) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139692 Archived-At: > Date: Sat, 01 Oct 2022 15:29:58 -0300 > From: Wayne Harris via Users list for the GNU Emacs text editor > > > You cannot use UTF-8 for encoding command-line arguments of > > subprocesses on MS-Windows. Use your system's codepage instead. This > > means make sure the Eshell buffer's value of buffer-file-coding-system > > is your system codepage, not UTF-8. > > I'm glad I added that parenthesis about Windows. (Thank you for the info!) > > However, I still did not manage to get this right. Could it be that I > don't know what my codepage is? When I run ``chcp'', I get 850. > > --8<---------------cut here---------------start------------->8--- > C:\Users\mer>chcp > Active code page: 850 > --8<---------------cut here---------------end--------------->8--- Unlikely. What does this say in Emacs: M-: w32-ansi-code-page RET > Then in ESHELL I type: > > --8<---------------cut here---------------start------------->8--- > %(setq buffer-file-coding-system 'cp850-dos) > cp850-dos > > %echo naive >> encoding.txt > > %fs commit -m 'Naïve.' > [...] > Sync done, wire bytes sent: 2882 received: 309 ip: 5.161.138.46 > > %fs timeline > === 2022-10-01 === > 18:26:22 [c7835d354b] *CURRENT* Naïve. (user: mer tags: trunk) > [...] > New_Version: c7835d354b[...] > % > --8<---------------cut here---------------end--------------->8--- Maybe you have other customizations that cause this. What does the below say: M-: default-process-coding-system RET