From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: Quotes in Dired listing switches Date: Mon, 28 Dec 2009 12:14:06 +0100 Message-ID: <877hs7jqpt.fsf@gmx.de> References: <87vdfy5om7.fsf@mail.jurta.org> <87pr61qyfm.fsf@gmx.de> <87637rze4b.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1261998929 2786 80.91.229.12 (28 Dec 2009 11:15:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Dec 2009 11:15:29 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 28 12:15:22 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 1NPDZJ-0005Is-LQ for ged-emacs-devel@m.gmane.org; Mon, 28 Dec 2009 12:15:21 +0100 Original-Received: from localhost ([127.0.0.1]:36644 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NPDZJ-0003jj-T3 for ged-emacs-devel@m.gmane.org; Mon, 28 Dec 2009 06:15:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NPDYQ-0003Uu-FI for emacs-devel@gnu.org; Mon, 28 Dec 2009 06:14:26 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NPDYL-0003T6-0T for emacs-devel@gnu.org; Mon, 28 Dec 2009 06:14:25 -0500 Original-Received: from [199.232.76.173] (port=36983 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NPDYK-0003Sw-Px for emacs-devel@gnu.org; Mon, 28 Dec 2009 06:14:20 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]:35415) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NPDYK-000435-El for emacs-devel@gnu.org; Mon, 28 Dec 2009 06:14:20 -0500 Original-Received: (qmail invoked by alias); 28 Dec 2009 11:14:16 -0000 Original-Received: from p4FC00BD7.dip0.t-ipconnect.de (EHLO ubuntu.local) [79.192.11.215] by mail.gmx.net (mp026) with SMTP; 28 Dec 2009 12:14:16 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/lTDZBh/zlLFBSQRZTFfhuR72icqKWoIQd8/HlAI QBCBuF4G/RZnX/ In-Reply-To: <87637rze4b.fsf@mail.jurta.org> (Juri Linkov's message of "Mon, 28 Dec 2009 12:29:32 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.58 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:118855 Archived-At: Juri Linkov writes: >> However, remote directory listings won't show a "thousands separator of >> the current locale", because Tramps sets LC_ALL to "C" on the remote >> hosts. The C locale has no thousands separator. If you (Juri) want to >> change this, you might customize `tramp-remote-process-environment', >> setting LC_ALL to en_US.UTF-8 or so. But please be careful, because >> Tramp reads output from some commands, and might expect English. > > Yes, this helps to show a thousands separator, and also to display > non-ASCII characters in file names! IMHO, it's a drawback that currently > Tramp doesn't support Unicode in Dired file names by default. > > 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 ... I put it on the todo list. I won't change it before Emacs 23.2 is out, due to stability reasons. Best regards, Michael.