tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tramp-get-remote-stat fails with locale de_DE.utf8 because of unexpe


From: Michael Albinus
Subject: Re: tramp-get-remote-stat fails with locale de_DE.utf8 because of unexpected quotes
Date: Tue, 20 Apr 2021 13:40:21 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Hendrik Tews <hendrik@askra.de> writes:

> Hi,

Hi Hendrik,

> with LANGUAGE=de_DE.utf8 quotes are „ and “ and stat -c '"%N"' /
> outputs "„/“", if QUOTING_STYLE=locale.
>
> Consequently,
>
>     (let ((filename "/ssh:localhost:.emacs") (id-format nil))
>       (with-parsed-tramp-file-name (expand-file-name filename) nil
>         (tramp-get-remote-stat v)))
>
> fails with Tramp 2.5.0.3 and Tramp falls back to use
> tramp_perl_file_attributes.
>
> When I set LANGUAGE=en_US.UTF-8, tramp-get-remote-stat returns
> the more expected "env QUOTING_STYLE=locale \\stat".
>
> Is this intended?

Nope. I have fixed this in tramp-sh.el. Since I'm not confident that the
UTF8 characters in the patch will survive email transport, I have
appended the whole changed tramp-sh.el for check. Could you pls report
back whether this helps?

> Best regards,
>
> Hendrik

Thanks, and best regards, Michael.

Attachment: tramp-sh.el
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]