[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tramp-get-remote-stat fails with locale de_DE.utf8 because of unexpected
From: |
Hendrik Tews |
Subject: |
tramp-get-remote-stat fails with locale de_DE.utf8 because of unexpected quotes |
Date: |
Sun, 18 Apr 2021 11:49:08 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Hi,
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. In the debug buffer I see
21:59:57.778873 tramp-send-string (10) # env QUOTING_STYLE=locale \stat -c
'("%N" %s)' / 2>/dev/null; echo tramp_exit_status $?
21:59:57.779026 tramp-get-connection-property (7) # process-buffer nil;
cache used: t
21:59:57.779200 tramp-get-connection-property (7) # locked nil; cache used:
nil
21:59:57.779337 tramp-set-connection-property (7) # locked t
21:59:57.779505 tramp-flush-connection-property (7) # locked
21:59:57.779676 tramp-get-connection-property (7) # check-remote-echo nil;
cache used: nil
21:59:57.779814 tramp-get-connection-property (7) # check-remote-echo nil;
cache used: nil
21:59:57.779957 tramp-get-connection-property (7) # locked nil; cache used:
nil
21:59:57.780095 tramp-set-connection-property (7) # locked t
21:59:57.811717 tramp-accept-process-output (10) # *tramp/ssh askra* nil
run t
("„/“" 4096)
When I set LANGUAGE=en_US.UTF-8, tramp-get-remote-stat returns
the more expected "env QUOTING_STYLE=locale \\stat".
Is this intended?
Best regards,
Hendrik
- tramp-get-remote-stat fails with locale de_DE.utf8 because of unexpected quotes,
Hendrik Tews <=