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: Mon, 07 Nov 2022 22:10:42 +0200 Message-ID: <83wn86y18d.fsf@gnu.org> 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: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37868"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58281@debbugs.gnu.org To: Daniel Bastos Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 07 21:12:24 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 1os8To-0009hW-4N for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Nov 2022 21:12:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1os8TT-00013F-LQ; Mon, 07 Nov 2022 15:12:03 -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 1os8TS-000136-TX for bug-gnu-emacs@gnu.org; Mon, 07 Nov 2022 15:12:02 -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 1os8TS-0002Xv-LJ for bug-gnu-emacs@gnu.org; Mon, 07 Nov 2022 15:12:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1os8TS-0006ka-A5 for bug-gnu-emacs@gnu.org; Mon, 07 Nov 2022 15:12:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Nov 2022 20:12: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.166785187425889 (code B ref 58281); Mon, 07 Nov 2022 20:12:02 +0000 Original-Received: (at 58281) by debbugs.gnu.org; 7 Nov 2022 20:11:14 +0000 Original-Received: from localhost ([127.0.0.1]:35489 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1os8Sg-0006jV-9m for submit@debbugs.gnu.org; Mon, 07 Nov 2022 15:11:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1os8SW-0006it-Ag for 58281@debbugs.gnu.org; Mon, 07 Nov 2022 15:11:13 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1os8SP-000270-CJ; Mon, 07 Nov 2022 15:10:57 -0500 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=z8xjgcsiMGq7CETXpw8Q+5TZu2VxYT22La+QTBt7ihc=; b=POnmXcJt4OPlgmvPqo/C qVV6ZigIp+b/hxjAtSB0nmjGuxzHVbatv7UktdGXP9Yy8GlixcOaGyTiKe7zUu0F5sVPjaAeuU4RM tmTwHunvQUAkyy2Z1okc9MSScPKxxmSm7EsUaOlthd7z6oazSele3+nfWkf6fhNLQ6dBoSx/14UOE Pj4v0DhXuU3E63AqcOunsBv2NZ1k5XpO1Zbr2AU8ulSQeNBCnNL6PA012/bjh9z8IiVljwzzoSfeI 26TCDjSgQvI1ga7jnZveDWf8aUcjhy8Fd5KC1jeqtTKOsm1okO7buypZxX/EqtVsYAUPQMN9JD0/z R1bIQgHUU4stOA==; Original-Received: from [87.69.77.57] (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 1os8SO-0003Oc-SK; Mon, 07 Nov 2022 15:10:57 -0500 In-Reply-To: (message from Daniel Bastos on Mon, 7 Nov 2022 16:40:04 -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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:247296 Archived-At: > From: Daniel Bastos > Date: Mon, 7 Nov 2022 16:40:04 -0300 > Cc: 58281@debbugs.gnu.org > > > > 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é.' > 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: e3d8a268759a5e968f132043404eecb4ea5068135fcebd0d35b6b668eb8404a2 > 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 > === 2022-11-07 === > 19:29:10 [e3d8a26875] *CURRENT* Naiveté. (user: mer tags: trunk) What do you see if you run "fossil timeline -n 1" from the shell outside of Emacs? does it show "Naiveté" as expected? If it does, then what you see above is a secondary and much less serious problem; the repository is OK. If that doesn't work, then I can only say that I tested this change with a program other than fossil, assuming fossil uses the system codepage. It worked for me with that other program: any text I wrote on the command line was received and processed by the program as I expected. Maybe fossil doesn't use the system codepage, in which case it doesn't play by the rules of a Windows console program, and I don't know what else we could do with this. Sorry.