From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Quotes in Dired listing switches Date: Mon, 28 Dec 2009 23:08:32 +0200 Organization: JURTA Message-ID: <87d41yq01b.fsf@mail.jurta.org> References: <87vdfy5om7.fsf@mail.jurta.org> <87pr61qyfm.fsf@gmx.de> <87637rze4b.fsf@mail.jurta.org> <877hs7jqpt.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1262035129 11417 80.91.229.12 (28 Dec 2009 21:18:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Dec 2009 21:18:49 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 28 22:18:42 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NPMzA-0001Bd-RF for ged-emacs-devel@m.gmane.org; Mon, 28 Dec 2009 22:18:41 +0100 Original-Received: from localhost ([127.0.0.1]:48956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NPMzB-0004rH-2E for ged-emacs-devel@m.gmane.org; Mon, 28 Dec 2009 16:18:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NPMz5-0004qd-Eu for emacs-devel@gnu.org; Mon, 28 Dec 2009 16:18:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NPMz2-0004od-15 for emacs-devel@gnu.org; Mon, 28 Dec 2009 16:18:35 -0500 Original-Received: from [199.232.76.173] (port=35582 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NPMz1-0004oY-OW for emacs-devel@gnu.org; Mon, 28 Dec 2009 16:18:31 -0500 Original-Received: from smtp-out3.starman.ee ([85.253.0.5]:34745 helo=mx1.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NPMz1-0005SQ-GR for emacs-devel@gnu.org; Mon, 28 Dec 2009 16:18:31 -0500 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.30.98.cable.starman.ee [82.131.30.98]) by mx1.starman.ee (Postfix) with ESMTP id 08CAA3F40A5; Mon, 28 Dec 2009 23:18:21 +0200 (EET) In-Reply-To: <877hs7jqpt.fsf@gmx.de> (Michael Albinus's message of "Mon, 28 Dec 2009 12:14:06 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:118885 Archived-At: >> 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/