From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Wayne Harris Newsgroups: gmane.emacs.bugs Subject: bug#58281: 27.1; windows mangles encoding on command line Date: Mon, 03 Oct 2022 22:18:35 -0300 Message-ID: <86sfk4cro4.fsf@zejito.i-did-not-set--mail-host-address--so-tickle-me> 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="23629"; mail-complaints-to="usenet@ciao.gmane.io" To: 58281@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 04 03:19:16 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 1ofWaZ-0005wR-G0 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Oct 2022 03:19:15 +0200 Original-Received: from localhost ([::1]:48172 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofWaX-00088L-Oe for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Oct 2022 21:19:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42058) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofWaN-00087x-2M for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2022 21:19:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52916) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofWaM-0003IE-R2 for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2022 21:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ofWaM-0001Vr-Ag for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2022 21:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Wayne Harris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Oct 2022 01:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58281 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16648463305792 (code B ref -1); Tue, 04 Oct 2022 01:19:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Oct 2022 01:18:50 +0000 Original-Received: from localhost ([127.0.0.1]:51994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofWa9-0001VM-8n for submit@debbugs.gnu.org; Mon, 03 Oct 2022 21:18:50 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:42076) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofWa7-0001VD-Dw for submit@debbugs.gnu.org; Mon, 03 Oct 2022 21:18:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofWa7-000876-7K for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2022 21:18:47 -0400 Original-Received: from mail-vs1-xe2d.google.com ([2607:f8b0:4864:20::e2d]:40588) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofWa3-0003GT-Fk for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2022 21:18:45 -0400 Original-Received: by mail-vs1-xe2d.google.com with SMTP id p11so4611649vsr.7 for ; Mon, 03 Oct 2022 18:18:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toledo-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date; bh=f+UlY3ckm7ElLpG9STPr+Epe19vPTFVOhNw1RJlhlBI=; b=DacDyqvvryKxPI4BzATqqeG3igDlk67lUIPbj0CypOFonzcKc7ANvAFlR23FcKpvZc nDNi03A8384k7xX/IQdSlBpPRw4HXWuu85t7eZtqXYKZtesNATmG2By5cG1tuQ7ZlLho ujN9w8G9E7nHyB1wQO1K15a/lcDmzWKotEJ2C2SUfofhs3ZuxCz6Veyn7SxB2YFo1Uvd KDm5YAQvf0LmaTwgDqderW7Wf87TG3ue24kvty1yk9C0H1HOvNt0WFmX3F8Q2uMU7ewn jCV7vRkjvntZifGVgLrdwsll2UUgTXcPRMjnLxYs5yG4yvO3cEPQKEQ4B5MTVwZeYMow XSrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date; bh=f+UlY3ckm7ElLpG9STPr+Epe19vPTFVOhNw1RJlhlBI=; b=iJmajSyy5xE1REwb24vfIeoU7PPOEVF3vgPv5M12FmFXr/AjCfJm5RgIRSYWRHu4TC tJ4ex991YoIF/0xVzDfAFhZYuqa5/e/qtJAghCMXED5rxF9SoQ60/QKa5+4Z5J2BuvDW Kq9Y5K/aaJzrNPCCW3mk/EkfRxvNJ3T44AbnzhpNIpmV1Cukvr1ZKhY7LSbFc+/vHWNn u3RrOg/RaHae6mu0e4drGgALgodJRvHjUWp2qtvnaOh8ih7nJT8XMTGBDK2675lJjqu8 XuZhs277MY/2+q/L1LJxFP45NC9EHx0ef+10FV4+AoueKGPel6wsrrlixRJLJLbecAix xRmw== X-Gm-Message-State: ACrzQf2J6g0rGDgSHLhhI1Yie1In7eacpdrsW126lOy0A2ToYF2GGMJW +sThV/8KM2+IoRUUe6ZdFqXsBWfi02YyLoiwVS9pPg== X-Google-Smtp-Source: AMsMyM5LqYZBFKI8M8cwGLoLGjpmeJok21ZZiKpTLlFXzx8AieeYg2kCXpmI4PwCltDns1lmixLu5g== X-Received: by 2002:a05:6102:3c8c:b0:39f:f9a0:e2dc with SMTP id c12-20020a0561023c8c00b0039ff9a0e2dcmr11420491vsv.40.1664846320279; Mon, 03 Oct 2022 18:18:40 -0700 (PDT) Original-Received: from zejito (179-70-172-194.user3p.veloxzone.com.br. [179.70.172.194]) by smtp.gmail.com with ESMTPSA id p22-20020a056102275600b003a6842b4c44sm2520989vsu.11.2022.10.03.18.18.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Oct 2022 18:18:39 -0700 (PDT) X-Google-Original-From: Wayne Harris Received-SPF: softfail client-ip=2607:f8b0:4864:20::e2d; envelope-from=dbastos@toledo.com; helo=mail-vs1-xe2d.google.com X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665 autolearn=no autolearn_force=no X-Spam_action: no action 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:244350 Archived-At: 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=20 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: trunk) --- entry limit (1) reached --- c:/my/path $=20 Commit message has been mangled. I then tried to set the ESHELL buffer to utf-8 to no avail. Eli Zaretskii kindly helped me to investigate this in the help-gnu-emacs@gnu.org maillist. First message was=20 <86wn9jd3sw.fsf@protonmail.com> with subject=20 on ESHELL, utf-8 and fossil command-line commit message --8<---------------cut here---------------start------------->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. --8<---------------cut here---------------end--------------->8--- In GNU Emacs 27.1 (build 1, x86_64-w64-mingw32) of 2020-08-21 built on CIRROCUMULUS Repository revision: 86d8d76aa36037184db0b2897c434cdaab1a9ae8 Repository branch: HEAD Windowing system distributor 'Microsoft Corp.', version 10.0.19041 System Description: Microsoft Windows 10 Enterprise (v10.0.2004.19041.388) Configured using: 'configure --without-dbus --host=3Dx86_64-w64-mingw32 --without-compress-install 'CFLAGS=3D-O2 -static'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2 HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LC_ALL: C value of $LANG: en_US locale-coding-system: cp1252 Major mode: Article Minor modes in effect: shell-dirtrack-mode: t electric-pair-mode: t show-paren-mode: t recentf-mode: t save-place-mode: t winner-mode: t display-time-mode: t global-eldoc-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: c:/sys/emacs/usr/.emacs.d/elpa/pos-tip-20191227.1356/pos-tip hides c:/sys/e= macs/share/emacs/site-lisp/my-pos-tip/pos-tip c:/sys/emacs/usr/.emacs.d/elpa/pos-tip-20191227.1356/pos-tip-pkg hides c:/s= ys/emacs/share/emacs/site-lisp/my-pos-tip/pos-tip-pkg c:/sys/emacs/usr/.emacs.d/elpa/pos-tip-20191227.1356/pos-tip-autoloads hide= s c:/sys/emacs/share/emacs/site-lisp/my-pos-tip/pos-tip-autoloads c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-xp hides c:= /sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-xp c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-xp-complete= hides c:/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-xp-complete c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-wsl hides c= :/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-wsl c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-visit hides= c:/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-visit c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-util hides = c:/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-util c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-unicode-inp= ut-method hides c:/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-un= icode-input-method c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-stepper hid= es c:/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-stepper c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-smart-open = hides c:/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-smart-open c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-show hides = c:/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-show c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-repl hides = c:/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-repl c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-repl-buffer= -name hides c:/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-repl-b= uffer-name c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-profile hid= es c:/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-profile c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-ppss hides = c:/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-ppss c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-parens hide= s c:/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-parens c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-mode hides = c:/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-mode c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-logger hide= s c:/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-logger c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-keywords-an= d-builtins hides c:/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-k= eywords-and-builtins c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-indent hide= s c:/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-indent c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-imenu hides= c:/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-imenu c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-font-lock h= ides c:/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-font-lock c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-eldoc hides= c:/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-eldoc c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-edit hides = c:/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-edit c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-doc hides c= :/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-doc c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-describe hi= des c:/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-describe c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-debug hides= c:/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-debug c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-custom hide= s c:/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-custom c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-complete hi= des c:/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-complete c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-common hide= s c:/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-common c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-collection = hides c:/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-collection c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-cmd hides c= :/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-cmd c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-bug-report = hides c:/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-bug-report c:/sys/emacs/usr/.emacs.d/elpa/racket-mode-20201022.1304/racket-browse-url = hides c:/sys/emacs/share/emacs/site-lisp/my-racket-mode/racket-browse-url c:/sys/emacs/usr/.emacs.d/elpa/seq-2.23/seq hides c:/sys/emacs/share/emacs/= 27.1/lisp/emacs-lisp/seq Features: (shadow emacsbug sendmail qp gnus-html help-fns radix-tree url-cache vc-git diff-mode mhtml-mode css-mode smie eww mm-url url-queue color js imenu cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs sgml-mode pcmpl-unix em-unix em-term term ehelp em-script em-prompt em-ls em-hist em-pred em-glob em-dirs esh-var em-cmpl em-basic em-banner em-alias esh-mode eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util ibuf-ext ibuffer ibuffer-loaddefs mm-archive pp canlock warnings nnir mule-util sort gnus-cite mail-extr gnus-async gnus-bcklg gnus-ml nndraft nnmh nnfolder gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-cache gnus-sum url url-proxy url-privacy url-expand url-methods url-history mailcap shr url-cookie url-domsuf url-util svg xml dom gnutls network-stream nsm nntp gnus-group gnus-undo cl gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils rx text-property-search thingatpt compile cl-extra help-mode python tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete parse-time iso8601 format-spec comint ansi-color misearch multi-isearch time-date paredit edmacro kmacro easy-mmode finder-inf info elec-pair paren recentf tree-widget wid-edit saveplace winner ring windmove server time my package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 446989 94601) (symbols 48 29224 2) (strings 32 128086 11600) (string-bytes 1 3901474) (vectors 16 51405) (vector-slots 8 2463639 186586) (floats 8 535 466) (intervals 56 16557 934) (buffers 1000 64))