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: Thu, 15 Sep 2022 12:02:33 +0200 Message-ID: References: <87leqlj6y3.fsf@gmx.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c6bc4105e8b45826" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13646"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57486@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 15 12:07:13 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 1oYlm5-0003Pt-2m for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Sep 2022 12:07:13 +0200 Original-Received: from localhost ([::1]:41324 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYlm3-0000p9-Vf for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Sep 2022 06:07:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38464) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYli2-0006kV-SS for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2022 06:03:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40259) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oYli2-0000TV-Hi for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2022 06:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oYli2-0008Ec-Cx for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2022 06:03: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: Thu, 15 Sep 2022 10:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57486 X-GNU-PR-Package: emacs Original-Received: via spool by 57486-submit@debbugs.gnu.org id=B57486.166323617431640 (code B ref 57486); Thu, 15 Sep 2022 10:03:02 +0000 Original-Received: (at 57486) by debbugs.gnu.org; 15 Sep 2022 10:02:54 +0000 Original-Received: from localhost ([127.0.0.1]:57191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYlhu-0008EF-BE for submit@debbugs.gnu.org; Thu, 15 Sep 2022 06:02:54 -0400 Original-Received: from mail-ej1-f52.google.com ([209.85.218.52]:44598) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYlhq-0008Dy-Iz for 57486@debbugs.gnu.org; Thu, 15 Sep 2022 06:02:53 -0400 Original-Received: by mail-ej1-f52.google.com with SMTP id r18so40903238eja.11 for <57486@debbugs.gnu.org>; Thu, 15 Sep 2022 03:02:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=Fz85NfphnV88qAftRzqwBuod9a8ddFscnu6Bmzha3XI=; b=ptHhrmFup+brvJPvSVOapcIEKQsErTADZg/Tkf5gTH4U9OYAyjNCXeAnKgPIPPfYtK IDrmx2t3zkAVJ1vwzU6xwEopYwDJ77FsrZ9fg0fHp+1xLreLbd47S6EcU/yVGs/+o/dm EZ3lTOyZS3jCMwBXfMAjBMbJMC5wWubjsIj3xwwWdqPvuyDvjSPZv5S4VfT7z2Y5kDsn bfRTKQFtWp3wfsKoakk6PhukdZgdVEeOTojZ41Ezi17EpG8iBZKuYYL7zpBNJwfMgTsT RWusn4fe6PTMfv9FyfEIs3eQHq/433E3Emt2KlgRyGDnBv/dOSfhj0m/N/euQKGDWcTg ue0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=Fz85NfphnV88qAftRzqwBuod9a8ddFscnu6Bmzha3XI=; b=AtrUyzZHsdNxIgJolXRsyQm4cyb5DHkpurLOvmVpMCLxm8UqZqhUAnAF6TEDxUOQWx U9ipcv83SVdbC05hVWUrEIANtuA2tqcRY/0UvQpkT370wPW5Yhn9lp3/ocDNw57yq8yZ HzX+qN/7VnBcHE4IaUyuTxyT47CZ90RXeXq+PVt6CyUJE4/IyOx38e12s+riDhP/GYhX UKnCP1jdylZAmpZ4IHsb7zETsuy/3JHytdKDp1mlJz5/UlGKsPO6u7pa7nXZUJzVFLy0 DgEi/rSMv4HP8lDztsE2ZO7M69ZS/1+rdqhCc8h3D7qFwO+IQbKxl8ct7Xtpkf9j4sl5 DimA== X-Gm-Message-State: ACgBeo2sVsC3V/iI1aYZFdaLae6dDcHjhQ2RRRdPo4EsJ+sHIjdVrvTX e79ZGIIZhE9PnyDGh7V9LnyanofgUTcjwo9hgdRXxFk= X-Google-Smtp-Source: AA6agR5XrZdAwbZT3xocR2MdU02CRwNYRmPlM7i6vLQaFWS/013C/9tJwR97QFf2lzjA2ac7imX3t1s5AyMFgvVE1ZE= X-Received: by 2002:a17:907:3f09:b0:780:330d:d907 with SMTP id hq9-20020a1709073f0900b00780330dd907mr5622857ejc.23.1663236164728; Thu, 15 Sep 2022 03:02:44 -0700 (PDT) In-Reply-To: <87leqlj6y3.fsf@gmx.de> 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:242582 Archived-At: --000000000000c6bc4105e8b45826 Content-Type: text/plain; charset="UTF-8" Yes, it is gone by now. I wasn't sure if it was fixed or a coincidence for a bug not happening 100% of the time, but if you know the specific reason and it was handled, then I can confirm the symptoms don't happen here anymore. Paul On Thu, 15 Sept 2022 at 11:57, Michael Albinus wrote: > Paul Pogonyshev writes: > > Hi Paul, > > > 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" > > With commit be2e6228f8, Tramp has been changed to use rx. This has > introduced a nasty typo in tramp-get-remote-locale: > > (rx bol (literal (car candidates))"%s" (? "\r") eol) > > (see the superfluous "%s"), which prevents Tramp to recognize the proper > locale. It has been fixed in commit f1635c8efb3 some days ago. > > Hopefully, the error is gone by this. COuld you pls check? > > > Paul > > Best regards, Michael. > --000000000000c6bc4105e8b45826 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes, it is gone by now. I wasn't sure if it was fixed = or a coincidence for a bug not happening 100% of the time, but if you know = the specific reason and it was handled, then I can confirm the symptoms don= 't happen here anymore.

Paul

On Thu, 15 Sept 20= 22 at 11:57, Michael Albinus <= michael.albinus@gmx.de> wrote:
Paul Pogonyshev <pogonyshev@gmail.com> writes:

Hi Paul,

> Git commit c8c3cd3b08.
>
> Connect to any remote machine. Run `M-x eshell RET', then `$ local= e'.
> Output:
>
> LANG=3Den_GB.UTF-8
> LANGUAGE=3D
> LC_CTYPE=3D"C"
> LC_NUMERIC=3D"C"
> LC_TIME=3D"C"
> ...
>
> All settings other than `LANG' are reset.
>
> In comparison, when I do the same with Emacs 28:
>
> LANG=3Den_GB.UTF-8
> LANGUAGE=3D
> LC_CTYPE=3D"en_US.utf8"
> LC_NUMERIC=3D"en_US.utf8"
> LC_TIME=3D"en_US.utf8"

With commit be2e6228f8, Tramp has been changed to use rx. This has
introduced a nasty typo in tramp-get-remote-locale:

(rx bol (literal (car candidates))"%s" (? "\r") eol)
(see the superfluous "%s"), which prevents Tramp to recognize the= proper
locale. It has been fixed in commit f1635c8efb3 some days ago.

Hopefully, the error is gone by this. COuld you pls check?

> Paul

Best regards, Michael.
--000000000000c6bc4105e8b45826--