GNU bug report logs - #57486
TRAMP resets all locale settings

Previous Next

Package: emacs;

Reported by: Paul Pogonyshev <pogonyshev <at> gmail.com>

Date: Tue, 30 Aug 2022 13:11:01 UTC

Severity: normal

Fixed in version 29.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 57486 in the body.
You can then email your comments to 57486 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#57486; Package emacs. (Tue, 30 Aug 2022 13:11:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Paul Pogonyshev <pogonyshev <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 30 Aug 2022 13:11:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Paul Pogonyshev <pogonyshev <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: TRAMP resets all locale settings
Date: Tue, 30 Aug 2022 15:10:26 +0200
[Message part 1 (text/plain, inline)]
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
...
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57486; Package emacs. (Thu, 15 Sep 2022 09:58:01 GMT) Full text and rfc822 format available.

Message #8 received at 57486 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Paul Pogonyshev <pogonyshev <at> gmail.com>
Cc: 57486 <at> debbugs.gnu.org
Subject: Re: bug#57486: TRAMP resets all locale settings
Date: Thu, 15 Sep 2022 11:57:40 +0200
Paul Pogonyshev <pogonyshev <at> gmail.com> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57486; Package emacs. (Thu, 15 Sep 2022 10:03:02 GMT) Full text and rfc822 format available.

Message #11 received at 57486 <at> debbugs.gnu.org (full text, mbox):

From: Paul Pogonyshev <pogonyshev <at> gmail.com>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 57486 <at> debbugs.gnu.org
Subject: Re: bug#57486: TRAMP resets all locale settings
Date: Thu, 15 Sep 2022 12:02:33 +0200
[Message part 1 (text/plain, inline)]
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 <michael.albinus <at> gmx.de>
wrote:

> Paul Pogonyshev <pogonyshev <at> gmail.com> 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.
>
[Message part 2 (text/html, inline)]

Reply sent to Michael Albinus <michael.albinus <at> gmx.de>:
You have taken responsibility. (Thu, 15 Sep 2022 10:34:01 GMT) Full text and rfc822 format available.

Notification sent to Paul Pogonyshev <pogonyshev <at> gmail.com>:
bug acknowledged by developer. (Thu, 15 Sep 2022 10:34:02 GMT) Full text and rfc822 format available.

Message #16 received at 57486-done <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Paul Pogonyshev <pogonyshev <at> gmail.com>
Cc: 57486-done <at> debbugs.gnu.org
Subject: Re: bug#57486: TRAMP resets all locale settings
Date: Thu, 15 Sep 2022 12:33:07 +0200
Version: 29.1

Paul Pogonyshev <pogonyshev <at> gmail.com> writes:

Hi Paul,

> 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.

Thanks for the feedback. Closing.

> Paul

Best regards, Michael.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 13 Oct 2022 11:24:15 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 210 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.