From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Bastos Newsgroups: gmane.emacs.bugs Subject: bug#58281: 27.1; windows mangles encoding on command line Date: Thu, 6 Oct 2022 09:03:50 -0300 Message-ID: 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: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16749"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58281@debbugs.gnu.org, Wayne Harris To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 06 18:44:00 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 1ogTyZ-00047d-AK for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Oct 2022 18:44:00 +0200 Original-Received: from localhost ([::1]:56090 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogTyY-0004pm-65 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Oct 2022 12:43:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogSxk-0005DA-N9 for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2022 11:39:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34155) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ogSxk-0000uz-FW for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2022 11:39:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ogSxk-0000uX-Ab for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2022 11:39:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Bastos Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Oct 2022 15:39:04 +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.16650706873370 (code B ref 58281); Thu, 06 Oct 2022 15:39:04 +0000 Original-Received: (at 58281) by debbugs.gnu.org; 6 Oct 2022 15:38:07 +0000 Original-Received: from localhost ([127.0.0.1]:33224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogSwn-0000sF-96 for submit@debbugs.gnu.org; Thu, 06 Oct 2022 11:38:06 -0400 Original-Received: from mail-yb1-f179.google.com ([209.85.219.179]:38552) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogPc9-0004MG-MT for 58281@debbugs.gnu.org; Thu, 06 Oct 2022 08:04:35 -0400 Original-Received: by mail-yb1-f179.google.com with SMTP id c9so1963726ybf.5 for <58281@debbugs.gnu.org>; Thu, 06 Oct 2022 05:04:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=id.uff.br; s=google; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date; bh=w8VfoMGU38VVwGZuVSIL/onMCzQ+jZfw7YV6jdk3SEQ=; b=WU7Hc8hWjm2I7NSUKVnF5XP+x95UWz2vkBuQbEtjtJhGPGMCliTAjlJPgfJKdSTseD FrqLe92qOYTe+c6jxCcwsziwGi2elbbankXfrkLRiwLEfghOBjscTYqUhKm2/bGhjmWM vZP0Qd8N2vmRA2yJZPX85m84/yxIjwbrLFE4o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date; bh=w8VfoMGU38VVwGZuVSIL/onMCzQ+jZfw7YV6jdk3SEQ=; b=H5TWNgVYoy837yS87JR37oN3Dkl03VD9g35pa+bd1fSCt/W4lSjQvHaBJJXa8cKTjY N7gEg37tmz+1zW2rUeJi4yOkvaAW+q2KgahiCXEPXiqnfNf/ONMxg35CFS1CK0d7r+WT 7fNOKyjlTCGq38wfvFEoygmztStya6tIb3hhD9Nn+bCY5uXkI18mBvN/qvBshKheMYGu DJnnhgKDgxpkw6IpP76K4wgdRYzMnWDthtvpZ/5vSHMSCGJO5MO0bqgf69ihzW26wt4y 8h2SCVZbKF1k4PKbunFmvgz9Wt3TTLsMmExybtPq/2NkDQH43O7vPoZAnloNBmmkHkrx u3Jw== X-Gm-Message-State: ACrzQf1rAsLyw5q6dndpk628nLVW/kg8qcFke3y6dlvWvaa03qhPxypv Xo+l1+KtHa98VUeKMnIq86WyLCjFf4rJc51SRimCFA== X-Google-Smtp-Source: AMsMyM4pCWZT9In/eCBgYtal+6TO9Rk0EK8YhN39whMDZU9O2nS0UxGeItCiJnql/WOYNswfTBmHy6x16aVZsIOgbX0= X-Received: by 2002:a25:4282:0:b0:6be:9369:15bc with SMTP id p124-20020a254282000000b006be936915bcmr4149121yba.487.1665057867183; Thu, 06 Oct 2022 05:04:27 -0700 (PDT) In-Reply-To: <8335c3x5yb.fsf@gnu.org> X-Mailman-Approved-At: Thu, 06 Oct 2022 11:38:02 -0400 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:244682 Archived-At: 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=C3=A9' > > [...] > > Sync done, wire bytes sent: 3234 received: 309 ip: 5.161.138.46 > > > > c:/my/path $ fs timeline -n 1 > > =3D=3D=3D 2022-10-02 =3D=3D=3D > > 13:11:20 [febbbf0441] *CURRENT* Naivet=C3=83=C2=A9 (user: mer tags: tru= nk) > > --- 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. Thank you for looking into this issue.