From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.bugs Subject: bug#57486: TRAMP resets all locale settings Date: Tue, 30 Aug 2022 15:10:26 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000046275305e7751b5f" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36116"; mail-complaints-to="usenet@ciao.gmane.io" To: 57486@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 30 15:11:11 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 1oT11L-0009DL-1I for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 30 Aug 2022 15:11:11 +0200 Original-Received: from localhost ([::1]:44950 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oT11K-0000Rl-1S for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 30 Aug 2022 09:11:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43430) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oT11D-0000RO-De for bug-gnu-emacs@gnu.org; Tue, 30 Aug 2022 09:11:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45352) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oT11C-0001MO-E7 for bug-gnu-emacs@gnu.org; Tue, 30 Aug 2022 09:11:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oT11B-0003pj-Vk for bug-gnu-emacs@gnu.org; Tue, 30 Aug 2022 09:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Pogonyshev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Aug 2022 13:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57486 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.166186504314707 (code B ref -1); Tue, 30 Aug 2022 13:11:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Aug 2022 13:10:43 +0000 Original-Received: from localhost ([127.0.0.1]:35101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oT10t-0003p9-EN for submit@debbugs.gnu.org; Tue, 30 Aug 2022 09:10:43 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:47062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oT10s-0003p2-Lt for submit@debbugs.gnu.org; Tue, 30 Aug 2022 09:10:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oT10s-0000MW-H6 for bug-gnu-emacs@gnu.org; Tue, 30 Aug 2022 09:10:42 -0400 Original-Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]:34811) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oT10r-0001KS-32 for bug-gnu-emacs@gnu.org; Tue, 30 Aug 2022 09:10:42 -0400 Original-Received: by mail-ed1-x52d.google.com with SMTP id z2so14161953edc.1 for ; Tue, 30 Aug 2022 06:10:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc; bh=FYubbUC5gzoP+00rgZ2Swbh00+zd0Nlwxb2QJnKwZVA=; b=bm5GiJuDTGakVur/fsEDaT8uRybRoUVJduj2xhxC6GU6PBmzAM7iD7Vfh7mQYPEBBw yCqagJcuKLYIg9vcRMP0H2BZQ6KWtotUjk9JsjFVAs4mCHDVUmWemdC+EhHFP5EUlwrm IeofbkLSePPO1TrTlTaLjQiZm5JQK0RajFEca/JSrba1muHi7jNOguqmvYMTzvR8TusH RxxU3Fvrk1EfF53sKl1pefhbtBabVLIAll3xHHQdevRmXrd7nujLN+ZFgrZIr5l4jmjj Idr0SIBMP3G6ManNaaeIUrryGPku3c4YNt4vFYcLlM0E21UujLWr+50nxBdsaM2xuWU+ wKpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc; bh=FYubbUC5gzoP+00rgZ2Swbh00+zd0Nlwxb2QJnKwZVA=; b=yBMOib8DMZ2sE5ktpShkbTsMkeyG6FPOcIq/plR4G2Wt2YEa5twEgHc8oG6Fd9UfBY FrJ6XUDng74fvVvL8GVl6fGZZpUCQ4ujfrlCUZ5fRRIzw3sFFdGpiu58JlHootErW5r8 RYeOiW20YiKcshTK8TxoMUJ84h7NkoV4B7U5k/30xTpiP4i5PtjL9vZJgBIp3JhRgHf2 dlQldiHiVzB8hV/NE69LWe5fT0/aR0vhDiP9HJjfkOwqi03CntlL/wi8ldYo9SOXfkGs 8XYuyX4Mj/x8P/JN8XyfXz+AZT1AQr81dYGOnUTBJl8xIhh1cWqsBqejmYFYWb/GfoTs 2qAA== X-Gm-Message-State: ACgBeo2gzxx8DxrKOw0pu7xFIQr+btbXb/8b7gSF/hQzQtmDFektOAl3 PrwEjSoxRioIUSN2fEFe3VFw4jTWfVJl3qBe+AQSFrgJSw== X-Google-Smtp-Source: AA6agR4coaW+Y5/a9vqFNvY79X/JK9B3+Kez1GwjcY2Txck/dbnHKE9XJfYnTmhzHNOpMHEyP9mhtLqaEccwyQrNYt4= X-Received: by 2002:a05:6402:4282:b0:43e:612c:fcf7 with SMTP id g2-20020a056402428200b0043e612cfcf7mr20095850edc.242.1661865038324; Tue, 30 Aug 2022 06:10:38 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::52d; envelope-from=pogonyshev@gmail.com; helo=mail-ed1-x52d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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:241132 Archived-At: --00000000000046275305e7751b5f Content-Type: text/plain; charset="UTF-8" Git commit c8c3cd3b08. Connect to any remote machine. Run `M-x eshell RET', then `$ locale'. Output: LANG=en_GB.UTF-8 LANGUAGE= LC_CTYPE="C" LC_NUMERIC="C" LC_TIME="C" ... All settings other than `LANG' are reset. In comparison, when I do the same with Emacs 28: LANG=en_GB.UTF-8 LANGUAGE= LC_CTYPE="en_US.utf8" LC_NUMERIC="en_US.utf8" LC_TIME="en_US.utf8" Paul ... --00000000000046275305e7751b5f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Git commit=C2=A0c8c3cd3b08.

Connect to = any remote machine. Run `M-x eshell RET', then `$ locale'. Output:<= /div>

LANG=3Den_GB.UTF-8
LANGUAGE=3D
LC_CTYPE=3D&q= uot;C"
LC_NUMERIC=3D"C"
LC_TIME=3D"C"
<= div>...

All settings other than `LANG' are= reset.

In comparison, when I do the same with Ema= cs 28:

LANG=3Den_GB.UTF-8
LANGUAGE=3D
LC_CTY= PE=3D"en_US.utf8"
LC_NUMERIC=3D"en_US.utf8"
LC_TI= ME=3D"en_US.utf8"

Paul
...
--00000000000046275305e7751b5f--