all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: Stefan Monnier <monnier@IRO.UMontreal.CA>, emacs-devel@gnu.org
Subject: Re: Quotes in Dired listing switches
Date: Mon, 28 Dec 2009 23:08:32 +0200	[thread overview]
Message-ID: <87d41yq01b.fsf@mail.jurta.org> (raw)
In-Reply-To: <877hs7jqpt.fsf@gmx.de> (Michael Albinus's message of "Mon, 28 Dec 2009 12:14:06 +0100")

>> Is it possible to improve Tramp to set LC_ALL to "C" only for commands
>> where Tramp expects English?  Or just to set LC_MESSAGES to "C" if Tramp
>> expects only English messages?
>
> That's something I have thought about already. But it requires a very
> precise review of Tramp's communication, in order to identify those
> places in the code. And also LC_NUMERIC might be involved; I fear that
> Tramp might be confused by reading numbers with a thousand separator.
> (Hopefully, `tramp-send-command-and-read' is the only place, but I do
> not know whether we have been careful enough writing tramp.el)
>
> Furthermore, Tramp cannot expect Unicode on the remote machine. There
> might be anything encoded ...

There is another related problem: Tramp doesn't display the Dired buffer
when an older version of `ls' on the remote machine doesn't support
a new switch supported by the local newer version of `ls'.

Something like below could handle this situation to remove unsupported
switches before running `ls' on the remote machine:

(add-hook 'dired-before-readin-hook
          (lambda ()
            (when (file-remote-p default-directory)
              (setq dired-actual-switches
                    (replace-regexp-in-string "--block-size='1" ""
                                              dired-actual-switches)))))

but this is an ugly hack.  Do you have an idea how to handle this problem?

> I put it on the todo list. I won't change it before Emacs 23.2 is out,
> due to stability reasons.

Yes, this is not an urgent problem, but rather a need for improvement.

-- 
Juri Linkov
http://www.jurta.org/emacs/




  reply	other threads:[~2009-12-28 21:08 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-23  9:07 Quotes in Dired listing switches Juri Linkov
2009-12-24  3:18 ` Stefan Monnier
2009-12-26 20:21   ` Michael Albinus
2009-12-28 10:29     ` Juri Linkov
2009-12-28 11:14       ` Michael Albinus
2009-12-28 21:08         ` Juri Linkov [this message]
2009-12-29  9:10           ` Michael Albinus
2009-12-29 20:35             ` Juri Linkov
2009-12-29 21:04               ` Michael Albinus
2009-12-29 17:10     ` Stefan Monnier
2009-12-30 19:46       ` Michael Albinus
2010-01-11  0:43   ` Juri Linkov
2010-01-25  9:29 ` Juri Linkov
2010-01-25 10:35   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d41yq01b.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.org \
    --cc=michael.albinus@gmx.de \
    --cc=monnier@IRO.UMontreal.CA \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.