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: Chinese in tramp become ????s Date: Mon, 03 Aug 2009 06:04:23 +0200 Message-ID: <87ljm1a6go.fsf@gmx.de> References: <87r5vywzs4.fsf@gmx.de> <87ab2mwyra.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1249272305 28687 80.91.229.12 (3 Aug 2009 04:05:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Aug 2009 04:05:05 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Wang Lei Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 03 06:04:58 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MXonB-00057L-Kn for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Aug 2009 06:04:57 +0200 Original-Received: from localhost ([127.0.0.1]:35306 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXonA-00081p-Uj for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Aug 2009 00:04:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MXomm-00081P-Ey for help-gnu-emacs@gnu.org; Mon, 03 Aug 2009 00:04:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXomh-00081D-7y for help-gnu-emacs@gnu.org; Mon, 03 Aug 2009 00:04:32 -0400 Original-Received: from [199.232.76.173] (port=56083 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXomh-00081A-0x for help-gnu-emacs@gnu.org; Mon, 03 Aug 2009 00:04:27 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:45809) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MXomg-0005Df-53 for help-gnu-emacs@gnu.org; Mon, 03 Aug 2009 00:04:26 -0400 Original-Received: (qmail invoked by alias); 03 Aug 2009 04:04:24 -0000 Original-Received: from p57A21BB1.dip0.t-ipconnect.de (EHLO arthur.local) [87.162.27.177] by mail.gmx.net (mp071) with SMTP; 03 Aug 2009 06:04:24 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18uMyduRyou+4Nob4CE8Al4ehW4pWAN13Qt/sSSWB M2WnF2ZWhNRBws In-Reply-To: (Wang Lei's message of "Sat, 1 Aug 2009 09:50:27 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.65 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:66689 Archived-At: Wang Lei writes: >>> In tramp mode, when I create a direcotry named =E4=BD=A0=E5=A5=BD, it d= isplays >>> '??????', this is the describe-char's output: >> >> Same here. However, if I open /ssh:host:/path/=E4=BD=A0=E5=A5=BD/ I can = continue to >> work. So it seems to be a problem of /bin/ls >> > Then. Maybe it's a su's problem? It's an environment problem. Tramp sets LC_ALL to "C". You should do the following, before connecting via "su": (add-to-list 'tramp-remote-process-environment "LANG=3Dzh_CN.utf8" 'append) (add-to-list 'tramp-remote-process-environment "LC_ALL=3Dzh_CN.utf8" 'appen= d) Best regards, Michael.