tramp-devel
[Top][All Lists]
Advanced

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

Re: emacs dired + tramp seeing invalid characters


From: kiran dasoju
Subject: Re: emacs dired + tramp seeing invalid characters
Date: Sat, 19 Aug 2023 02:37:15 -0700

Michael
Thanks for spot-on debug, yes looks like that was the problem.

I had the following setting in my init file
(setq dired-listing-switches "-hltFGH --time-style=long-iso --group-directories-first --color=auto")

and that conflicts with tramp's --color=never requirement.

i removed it and made it following
(setq dired-listing-switches "-hltFGH --time-style=long-iso --group-directories-first")

and it works fine now !!!

Thanks for the prompt debug !! tramp rocks !





On Sat, Aug 19, 2023 at 12:26 AM Michael Albinus <michael.albinus@gmx.de> wrote:
Michael Albinus <michael.albinus@gmx.de> writes:

Hi Kiran,

>> I am using TRAMP with emacs, when use dired to browse files on remote
>> machine i see lot of invalid characters
>> for example
>> for docs i see  [01;34mdocs [0m/
>> similarly for home i see [01;34mhome [0m/
>
> This is colrized ls output ("[01;34m" is blue). Do you see it only in
> the Tramp debug buffer, or also in a dired buffer?
>
> Tramp tries to handle this, and a more recent Tramp should have no
> problem. Which Emacs / Tramp version are you using?

I've just read your debug buffer again, and ls is called like this:

--8<---------------cut here---------------start------------->8---
12:31:01.469621 tramp-send-command (6) # /usr/bin/ls --color=never --dired -hltFGH --time-style\=long-iso --group-directories-first --color\=auto --sort\=version --quoting-style\=literal --show-control-chars /xxx/xxxxxxxxx/xxxx/. 2>/dev/null
--8<---------------cut here---------------end--------------->8---

"--color=never" comes from Tramp. But there are other arguments, like
"--color\=auto", which are not from Tramp, and which trigger ls output
colorization. Could you, please, check your customization?

Best regards, Michael.

reply via email to

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