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 18:05:51 +0300 Message-ID: <83czbbbn3k.fsf@gnu.org> References: <86wn9jd3sw.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="15877"; 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 17:08:34 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 1oee6S-0003wx-CI for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 01 Oct 2022 17:08:32 +0200 Original-Received: from localhost ([::1]:35214 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oee6R-00064y-C4 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 01 Oct 2022 11:08:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oee42-000639-Nt for help-gnu-emacs@gnu.org; Sat, 01 Oct 2022 11:06:03 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46092) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oee42-0003sp-8C for help-gnu-emacs@gnu.org; Sat, 01 Oct 2022 11:06:02 -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=x0nNLOorTc7M20mvoxlujkP1puya2ADPlLnReiZ/NXk=; b=rFGqtC/wVMJgoY9pEbyM IScrnUdYMri5bKc+TKmv2hmhuFinFEXI2BPsuwIjZPwrBBF/G9v5UmIBhk9zvAHs2t1KXrupGWT25 0RnQRwiDhlxAdZkQvQX531njYt+1jgtMq9yind6hjYyeQW85Up+HSm4wP6tmYY6wpmcv4vt4AHEyI 7E6MMWUleJ0oLKjvP6UdS1ZHKhokjWQylgZMO5C96CFOm3pMCiR2dXHn5q6oRJOQBLhkCpiPABgiL PHpdadz8rIt4/5eos4iqhaDm25YGuGFNA0zDmRzYjF4McrT11VBkrod/vSQuTAiuH2WYBQxblw8fq nohzv430WmMwWg==; Original-Received: from [87.69.77.57] (port=4753 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 1oee41-0001Zq-P8 for help-gnu-emacs@gnu.org; Sat, 01 Oct 2022 11:06:01 -0400 In-Reply-To: <86wn9jd3sw.fsf@protonmail.com> (message from Wayne Harris via Users list for the GNU Emacs text editor on Sat, 01 Oct 2022 11:19:43 -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:139689 Archived-At: > Date: Sat, 01 Oct 2022 11:19:43 -0300 > From: Wayne Harris via Users list for the GNU Emacs text editor > > As far as I can tell in my GNU EMACS, all by buffers relevant to context > here are set to UTF-8. I see the letter U in the first letter of the > modeline --- the GNU EMACS status bar. (I'm on Windows, by the way.) Bad idea. See below. > When I add an UTF-8 message through the command line in ESHELL, it > doesn't display properly when I say ``fossil timeline''. Check it: > > --8<---------------cut here---------------start------------->8--- > %fs add encoding.txt > ADDED encoding.txt > > %fs commit -m 'Naïve commit.' > Pull from https://mer@somewhere.edu/test > Round-trips: 1 Artifacts sent: 0 received: 0 > Pull done, wire bytes sent: 442 received: 1959 ip: 5.161.138.46 > New_Version: f4c20ecefc9d04d5fd2548eb4d3008d9ffb759a4deebedd595b222f81eef6b1f > Sync with https://mer@somewhere.edu/test > Round-trips: 1 Artifacts sent: 2 received: 0 > Sync done, wire bytes sent: 2342 received: 309 ip: 5.161.138.46 > > %fs timeline > === 2022-10-01 === > 14:03:28 [f4c20ecefc] *CURRENT* Naïve commit. (user: mer tags: trunk) > [...] > --8<---------------cut here---------------end--------------->8--- > > However, if instead of the command-line, I use a regular GNU EMACS > buffer, it works just fine. > > --8<---------------cut here---------------start------------->8--- > %echo kkk >> encoding.txt > > %fs commit > Pull from https://mer@somewhere.edu/test > Round-trips: 1 Artifacts sent: 0 received: 0 > Pull done, wire bytes sent: 437 received: 2118 ip: 5.161.138.46 > emacsclientw ./ci-comment-A2803F45F10B.txt > Waiting for Emacs... > Pull from https://mer@somewhere.edu/test > Round-trips: 1 Artifacts sent: 0 received: 0 > Pull done, wire bytes sent: 441 received: 2118 ip: 5.161.138.46 > New_Version: 09ea1b5d5b8d776d61a74bb412cd58bd8b6f82323c2f539a1eb0d915f7026f20 > Sync with https://mer@somewhere.edu/test > Round-trips: 1 Artifacts sent: 2 received: 0 > Sync done, wire bytes sent: 2496 received: 309 ip: 5.161.138.46 > > %fs timeline > === 2022-10-01 === > 14:09:39 [09ea1b5d5b] *CURRENT* Naiveté. (user: mer tags: trunk) > --8<---------------cut here---------------end--------------->8--- > > Who is mangling my command-line arguments and why? Thank you! 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.