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: Mon, 7 Nov 2022 16:40:04 -0300 Message-ID: References: <86sfk4cro4.fsf@zejito.i-did-not-set--mail-host-address--so-tickle-me> <8335c3x5yb.fsf@gnu.org> <83k055ctvz.fsf@gnu.org> <83fsftasos.fsf@gnu.org> <835ygl73k7.fsf@gnu.org> <834jvc35xh.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="3133"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58281@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 07 20:41:33 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 1os7zv-0000Zw-9r for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Nov 2022 20:41:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1os7zZ-0005DZ-Bh; Mon, 07 Nov 2022 14:41:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1os7zT-0005C0-RC for bug-gnu-emacs@gnu.org; Mon, 07 Nov 2022 14:41:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1os7zT-0001us-Fj for bug-gnu-emacs@gnu.org; Mon, 07 Nov 2022 14:41:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1os7zS-0005li-Bj for bug-gnu-emacs@gnu.org; Mon, 07 Nov 2022 14:41:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Bastos Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Nov 2022 19:41:02 +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.166785005322153 (code B ref 58281); Mon, 07 Nov 2022 19:41:02 +0000 Original-Received: (at 58281) by debbugs.gnu.org; 7 Nov 2022 19:40:53 +0000 Original-Received: from localhost ([127.0.0.1]:35325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1os7zI-0005lF-St for submit@debbugs.gnu.org; Mon, 07 Nov 2022 14:40:53 -0500 Original-Received: from mail-yb1-f178.google.com ([209.85.219.178]:39877) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1os7zC-0005kv-Hh for 58281@debbugs.gnu.org; Mon, 07 Nov 2022 14:40:51 -0500 Original-Received: by mail-yb1-f178.google.com with SMTP id j2so14871120ybb.6 for <58281@debbugs.gnu.org>; Mon, 07 Nov 2022 11:40:46 -0800 (PST) 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 :message-id:reply-to; bh=wQjtJVUdCDc7N8vfqcSqEH7NXPFqpdU+d3fmK6Fkef0=; b=iBQPD1zD5lbh2Z8VT8dJ5nvMQZjJAGjeDiaCUrPBjogGzuSWVOlSZj1ogzbS1lojZz UUZUO63VsRfXEUnRTLuEbzG4DIT+dUzuDnJITsa0Cg2pcMphqmOOhNG3SH+LEybCMbsd LMm/6YSnoXRM2NjhO9ZVdU4ravB6EjHQOTfYU= 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:message-id:reply-to; bh=wQjtJVUdCDc7N8vfqcSqEH7NXPFqpdU+d3fmK6Fkef0=; b=Z8AJrnn4pU1RleSZ7gHbng3Qs6NoYuUun2NYcp2WvcV0duGQ+3pj6upAkNLauE8Whd 1GI+7145Yi3I3SDNnKDw0om2PM33FtQwROBq1JriJ1Ghn9XdVJa1Od25rDB8o/la/UdT VdDAz+xBgwXGSZ2l9qhzx0IIEJWD/9vVjnZMeyuawaoSDxjfZiVp4CUcQrzeYqEKL27X kY+qzm7XWzN5pk25eux4BYG/8GLsvHeOrl7h6kEJiUnrw4IHvu7dx/pY8Zz21ZuQpEKz 41n8ey6qkktx3TK3x/dWU4A8q6Zemam8Ojt//3SiTu88Hd09+w+gyywVk1y6RqiGFsmz R+2Q== X-Gm-Message-State: ACrzQf3UGp0Lv5tdjwwaNQqYbmCmEGDaXMcxN+E/4DiWSe4BI/vKxy4f WV66hqBZoxnNSMmy2Pz93zspA7sogBuTZpRZSg6BUr+nbps6Ww== X-Google-Smtp-Source: AMsMyM5kU0Xras+fIxcAP9ydWSfUwXzbzgNfpe/Ai5eF73Qzl8kdU3aR3viE6tuKngwm1SO9EKi0I67bLSAbogH5cFY= X-Received: by 2002:a05:6902:1cb:b0:6cf:e925:5baa with SMTP id u11-20020a05690201cb00b006cfe9255baamr29470484ybh.636.1667850040793; Mon, 07 Nov 2022 11:40:40 -0800 (PST) In-Reply-To: <834jvc35xh.fsf@gnu.org> 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:247294 Archived-At: Pong! I'm so sorry I've delayed this so much. (It's been in my inbox, though, so it would not be forgotten.) On Sun, Nov 6, 2022 at 4:20 AM Eli Zaretskii wrote: > > Ping! Did you have a chance to test the changes I installed? > > > Cc: 58281@debbugs.gnu.org > > Date: Sat, 15 Oct 2022 14:02:16 +0300 > > From: Eli Zaretskii > > > > > Cc: 58281@debbugs.gnu.org > > > Date: Wed, 12 Oct 2022 19:54:27 +0300 > > > From: Eli Zaretskii > > > > > > > From: Daniel Bastos > > > > Date: Wed, 12 Oct 2022 08:49:32 -0300 > > > > Cc: 58281@debbugs.gnu.org > > > > > > In addition to what I just wrote, please try this: As soon as you > > > start Emacs, type: > > > > > > M-: (setq default-process-coding-system '(undecided-dos . cp850-dos= )) RET > > > > > > Then enter Eshell and try the fossil command you tried before. See i= f > > > this solves the problem. It did not. I ran emacs -Q, evaluated the code above and tried this: c:/my/path $ (print default-process-coding-system) (undecided-dos . cp850-dos) c:/my/path $ fossil changes ADDED hello.txt c:/my/path $ fossil commit -m 'Naivet=C3=A9.' Pull from https://mer@somewhere.edu/mer Round-trips: 1 Artifacts sent: 0 received: 0 Pull done, wire bytes sent: 439 received: 3830 ip: 5.161.138.46 New_Version: 092b3d5d04247d6b0784957dee568958838788585417e5be474ed8d67a15d9= b8 Sync with https://mer@somewhere.edu/mer Round-trips: 1 Artifacts sent: 2 received: 0 Sync done, wire bytes sent: 4206 received: 308 ip: 5.161.138.46 c:/my/path $ fossil timeline -n 1 =3D=3D=3D 2022-11-07 =3D=3D=3D 18:39:38 [092b3d5d04] *CURRENT* Naivet=E2=80=9A. (user: mer tags: trunk) --- entry limit (1) reached --- So the accented letter came out as a comma and a period. > > > I think I found a bug in Eshell that the above workaround should > > > side-step. > > > > I've now installed a change for Emacs 29 that I think should fix your > > problems. So if you can try the current master branch of the Emacs > > Git repository, please do, and see if your problem with Fossil are > > solved there. I'm not sure which is "Emacs 29". I took the master branch https://git.savannah.gnu.org/cgit/emacs.git/ right now --- November 7th, 15h EST --- and followed nt/INSTALL.W64 to compile it using MSYS32 in a MINGW64 shell. After building the runemacs.exe, I ran it with the option -Q and I see the version is GNU Emacs 29.0.50 (build 1, x86_64-w64-mingw32) of 2022-11-07 I get the following behavior: c:/my/path $ fossil commit -m 'Naivet=C3=A9.' Pull from https://mer@somewhere.edu/mer Round-trips: 1 Artifacts sent: 0 received: 0 Pull done, wire bytes sent: 438 received: 3908 ip: 5.161.138.46 New_Version: e3d8a268759a5e968f132043404eecb4ea5068135fcebd0d35b6b668eb8404= a2 Sync with https://mer@somewhere.edu/mer Round-trips: 1 Artifacts sent: 2 received: 0 Sync done, wire bytes sent: 4297 received: 309 ip: 5.161.138.46 c:/my/path $ fossil timeline -n 1 =3D=3D=3D 2022-11-07 =3D=3D=3D 19:29:10 [e3d8a26875] *CURRENT* Naivet=C3=83=C2=A9. (user: mer tags: trunk) --- entry limit (1) reached --- As a second try, I'm going to set the variable default-process-coding-system as you suggested above and try again, restarting the GNU EMACS first --- just in case. Restarted, ran ESHELL and... c:/my/path $ (print default-process-coding-system) (undecided-dos . undecided-unix) c:/my/path $ (setq default-process-coding-system '(undecided-dos . cp850-do= s)) (undecided-dos . cp850-dos) c:/my/path $ (print default-process-coding-system) (undecided-dos . cp850-dos) c:/my/path $ # it's set c:/my/path $ fossil commit -m 'Naivet=C3=A9.' Pull from https://mer@somewhere.edu/mer Round-trips: 1 Artifacts sent: 0 received: 0 Pull done, wire bytes sent: 440 received: 3984 ip: 5.161.138.46 New_Version: c51f1ff698f2964f2f06b7e4ca1ae672fb12f6e3e0599f616ff24658930185= d2 Sync with https://mer@somewhere.edu/mer Round-trips: 1 Artifacts sent: 2 received: 0 Sync done, wire bytes sent: 4341 received: 309 ip: 5.161.138.46 c:/my/path $ fossil timeline -n 1 =3D=3D=3D 2022-11-07 =3D=3D=3D 19:35:10 [c51f1ff698] *CURRENT* Naivet=C3=83=C2=A9. (user: mer tags: trunk) --- entry limit (1) reached --- It seems to me we get the same result. Thank you. I can test and retest this. Just let me know. It will be easier for me now because I already have all that it takes to compile the GNU EMACS here. Thank you.