From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: tramp mode locale for dir listings Date: Sat, 22 Aug 2015 20:39:25 +0200 Message-ID: <871tevmale.fsf@gmx.de> References: <8xxr3mwqpfm.fsf@village.keycorner.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1440268798 22084 80.91.229.3 (22 Aug 2015 18:39:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Aug 2015 18:39:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 22 20:39:49 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZTDhi-0005JC-PS for geh-help-gnu-emacs@m.gmane.org; Sat, 22 Aug 2015 20:39:46 +0200 Original-Received: from localhost ([::1]:47773 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTDhi-0003mo-9w for geh-help-gnu-emacs@m.gmane.org; Sat, 22 Aug 2015 14:39:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38888) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTDhU-0003mI-Fp for help-gnu-emacs@gnu.org; Sat, 22 Aug 2015 14:39:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZTDhQ-00033c-C6 for help-gnu-emacs@gnu.org; Sat, 22 Aug 2015 14:39:32 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:61113) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTDhQ-000321-3h for help-gnu-emacs@gnu.org; Sat, 22 Aug 2015 14:39:28 -0400 Original-Received: from detlef.gmx.de ([87.146.57.150]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MIhDo-1ZR1q203CK-002H8y for ; Sat, 22 Aug 2015 20:39:26 +0200 In-Reply-To: <8xxr3mwqpfm.fsf@village.keycorner.org> (Hikaru Ichijyo's message of "Fri, 21 Aug 2015 16:53:01 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:JM48ooMzzlm2nHH0yp3vGKiwCvHVSd/hIKyYP9/elKN64oLEeVL sS+K9/Av+yCu0Q/8eVfcOFq82zYUXf6qp4prrlT4Ldg/YPwHE9OQbmyxSHyC/4JR8WBi/IH frnnzEfkAPr1IX7tp39wgJE1Nt5XZYIceWj+0p7D2jFlVw/A5UqEgNkM00iDJ6n96NoYhCM rjdEdhLV1YQIeBrDbkbtg== X-UI-Out-Filterresults: notjunk:1;V01:K0:povkK1636sQ=:XU9Bf4NI+BF6Eeie01Em2+ s0NdT3iTPNx5XlcVtr8euaSaGd3Bx4ILOZgemRTBhEHZo5EtI8BZF6EFk0+bAIh15tcdDRKzI YGdqvWNylByfqzT5HoUOCv3He33irEKYHLo0OdYUUuJS3MXf/NYyQLMpu7jkD6DhxYtdvKJnP xk0GWKkdP/7e1nUOkcIkWOwgZDXrrqgw7B4kM/0275BalNNEVXwP+FR/RTE9EO0C/8CTkhH/u 6qPTKY6bzQgw1hPdMPDHaIGJZPBJ+JrCY0gWl6wRMif1JD+3vnS/nwyeKfbKlllaU96osOX05 XPwhz5IEQVPOQJDlhkbxQyqtbjjRTvKeZXWRhtGjaq9Q7w5/iKwXTHqKKIEDg+v7NP/QoH8D5 VTxHv7rXxdzjdHmJvgqOy4a8SCHZWkuwwkBdUKcCpdv29aCQkaQ1Av4woeKYHKnet+WwW8Ax4 szHKyzV2OSdBEW3LYu/fvPwN61eGOFoDmZVKzWlwUE8wwbnvwqPcm035JEzgdSy4gcyeVg1js qRTnXlBz2sg71+fW6QviHrf6sQ2yMs+K5zBw3951RVQQS/WZpGvzLFDSSVNkeZ4aDruU1JkIx 2eNMYWktkoNgdHbC7NUi98QOwYfLVbMw28vOhav7tjOCGJBA2afvN+pM9STkhMoOgWjWZJ+3t 8MmtHPPBD2yLR6ONbJ0AzPm6Hh2z17KAOeIz9F7FMMQPDphldJCtFUGaZI//UBDlNUUAO83ad DrrJ3ol5tVjILZTmxTOv+NWWjBhbX7U4295WcQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.22 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:106773 Archived-At: Hikaru Ichijyo writes: Hi, > When I list directories locally in Dired, they show up the way I like, > with "C" locale, dotfiles listed first. > > When I connect to a remote directory via Tramp, usually I get some other > locale, with files/dirs aphabetized as though the initial dot of > dotfiles didn't exist. This means lots of dotfiles are mixed in with > regular non-dot files in the listing, but Dired only does this to remote > machines. > > Is there any kind of variable I can set to get a "C" locale for Dired > listings whether the target is remote or local? Tramp determines the locale environment on the remote host, and keeps its value in the cache. Usually, this is something like "LC_ALL=en_US.utf8" or "LC_ALL=C.utf8". Check the file ~/.emacs.d/tramp for such settings. You could change it in this file to your preferred value, like "LC_ALL=C". This must be done *prior* Tramp is activated in Emacs. With a recent Tramp version (say 2.2.12), it is possible to set this value in your ~/.emacs (without patching ~/.emacs.d/tramp), like --8<---------------cut here---------------start------------->8--- (add-to-list 'tramp-connection-properties (list (regexp-quote "/ssh:user@randomhost.your.domain:") "locale" "LC_ALL=C")) --8<---------------cut here---------------end--------------->8--- Read the Tramp manual (info "(tramp) Predefined connection information") Best regards, Michael.