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.bugs Subject: bug#58281: 27.1; windows mangles encoding on command line Date: Wed, 12 Oct 2022 11:45:36 +0300 Message-ID: <83k055ctvz.fsf@gnu.org> References: <86sfk4cro4.fsf@zejito.i-did-not-set--mail-host-address--so-tickle-me> <8335c3x5yb.fsf@gnu.org> 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="35468"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58281@debbugs.gnu.org, dbastos@toledo.com To: Daniel Bastos Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 12 10:46:57 2022 Return-path: Envelope-to: geb-bug-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 1oiXOB-0008zF-Vb for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Oct 2022 10:46:56 +0200 Original-Received: from localhost ([::1]:40496 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiXOA-0005nE-1J for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Oct 2022 04:46:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59434) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiXNK-0005n0-28 for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2022 04:46:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56582) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oiXNJ-0006VC-RB for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2022 04:46:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oiXNJ-000052-Le for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2022 04:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Oct 2022 08:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58281 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 58281-submit@debbugs.gnu.org id=B58281.166556434232732 (code B ref 58281); Wed, 12 Oct 2022 08:46:01 +0000 Original-Received: (at 58281) by debbugs.gnu.org; 12 Oct 2022 08:45:42 +0000 Original-Received: from localhost ([127.0.0.1]:55654 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiXMz-0008Vs-Rx for submit@debbugs.gnu.org; Wed, 12 Oct 2022 04:45:42 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58796) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiXMu-0008Vb-TH for 58281@debbugs.gnu.org; Wed, 12 Oct 2022 04:45:40 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43342) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiXMl-0006CK-CP; Wed, 12 Oct 2022 04:45:28 -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=N8uVvFgPETYd/iZs8yl73oaSbRN45qs4ppcSd5ympog=; b=mF28K+Lqz8L4zVm61ERw d8lJmmD2zaQBOnOBTbld1r0sLRMU6mfsfNQJMO0z1q5qxeWH4gI7xfBQiNnHNNqaWbEzMuYdzsNHY lnZIwYfQTppAl34v38QKhclmwCp/0N1xzsI2cLbRbNDumCPtaOf9ks1ACUgFCWSjcI5R1lmkpItn8 Hpzeb/FqycqlX7mz5NTsa7EwGkG0rQAT1jZQsGWo2p9ALNV268IAr4s9QkE1QzBKtymgzN3sWel3E ywQWUWZACFC9/CvrYrz5/B4A0b7yKtmiyK/XRRrD2RYDDSbwqRKzEcTieTeXOYsd1JSFakcA98LY4 HZu1iedj5RS2rg==; Original-Received: from [87.69.77.57] (port=3185 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 1oiXMk-0003zj-IV; Wed, 12 Oct 2022 04:45:27 -0400 In-Reply-To: (message from Daniel Bastos on Thu, 6 Oct 2022 09:03:50 -0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:245178 Archived-At: > From: Daniel Bastos > Date: Thu, 6 Oct 2022 09:03:50 -0300 > Cc: Wayne Harris , 58281@debbugs.gnu.org > > On Tue, Oct 4, 2022 at 7:02 AM Eli Zaretskii wrote: > > > From: Wayne Harris > > > Date: Mon, 03 Oct 2022 22:18:35 -0300 > > > > > > I run emacs -Q. I open eshell. Then I try to use fossil (which is a > > > version control system like git) and try to put accented letters on the > > > commit message. No choice of encoding seems to avoid the mangling. > > > > > > c:/my/path $ alias fs 'fossil $*' > > > c:/my/path $ echo kkk >> encoding.txt > > > c:/my/path $ fs changes > > > EDITED encoding.txt > > > > > > c:/my/path $ (print default-process-coding-system) > > > (undecided-dos . undecided-unix) > > > > > > c:/my/path $ (or buffer-file-coding-system "it is nil") > > > it is nil > > > > > > c:/my/path $ fs commit -m 'Naiveté' > > > [...] > > > Sync done, wire bytes sent: 3234 received: 309 ip: 5.161.138.46 > > > > > > c:/my/path $ fs timeline -n 1 > > > === 2022-10-02 === > > > 13:11:20 [febbbf0441] *CURRENT* Naiveté (user: mer tags: trunk) > > > --- entry limit (1) reached --- > > > c:/my/path $ > > > > Where did you download Fossil for MS-Windows? Is it a native Windows > > program, or a Cygwin program? Is 'fs' a program (i.e. fs.exe) or some > > kind of shell script, and if the latter, can you post the script? > > I went to > > https://fossil-scm.org/home/uv/download.html > > and chose the last one --- Windows64 ---, which is the ZIP at > > https://fossil-scm.org/home/uv/fossil-w64-2.19.zip > > Inside this ZIP, there's a fossil.exe binary. All evidence points to > a native Windows program, not a Cygwin program. > > %file c:/my/path/fossil.exe > c:/my/path/fossil.exe: PE32+ executable (console) x86-64, for MS Windows > % > > There's no fs.exe and no script fs. (Sorry about that.) That's just > my alias in ESHELL. You can safely assume that /fs/ just means > /fossil/. (I shouldn't have used the alias in this bug report. > Sorry.) > > > Also, do you know whether Fossil expects the message text in some > > particular encoding? > > That I don't know. I've looked into the documentation, but I did not > find anything that looked relevant. I did find old commit messages in > the repository of fossil itself that little by little the developers > have been adding UTF-8 support to it. But I can't say it expects any > particular encoding. I think you said at some point that using non-ASCII commit log messages from a shell outside of Emacs did succeed? If so, can you describe how you do that, i.e. which shell do you use and how you type 'Naiveté' from the shell? Also, what does the command "chcp" report in that shell, if you invoke it with no arguments?