From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wang Lei Newsgroups: gmane.emacs.help Subject: Re: Chinese in tramp become ????s Date: Mon, 3 Aug 2009 21:31:20 +0800 Message-ID: References: <87r5vywzs4.fsf@gmx.de> <87ab2mwyra.fsf@gmx.de> <87ljm1a6go.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 1249316551 22962 80.91.229.12 (3 Aug 2009 16:22:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Aug 2009 16:22:31 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Michael Albinus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 03 18:22:23 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 1MY0Im-0001kG-F5 for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Aug 2009 18:22:21 +0200 Original-Received: from localhost ([127.0.0.1]:37643 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MY0Il-0003UX-HF for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Aug 2009 12:22:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MXxdQ-0000JH-4V for help-gnu-emacs@gnu.org; Mon, 03 Aug 2009 09:31:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXxdL-00006l-J1 for help-gnu-emacs@gnu.org; Mon, 03 Aug 2009 09:31:27 -0400 Original-Received: from [199.232.76.173] (port=37500 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXxdL-00006B-5z for help-gnu-emacs@gnu.org; Mon, 03 Aug 2009 09:31:23 -0400 Original-Received: from mail-vw0-f182.google.com ([209.85.212.182]:35198) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MXxdK-00032b-Nn for help-gnu-emacs@gnu.org; Mon, 03 Aug 2009 09:31:22 -0400 Original-Received: by vws12 with SMTP id 12so1207322vws.24 for ; Mon, 03 Aug 2009 06:31:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=X3HLhdGHgnPJlgdIl+oU2bkeQCgPCeyj1RSJ8OdLpTM=; b=ixDq3/156mvXywpY5m+KS3LEXZ00VxwMn6nXNaI90edzsQqLVU0WcBAaOTsswTrh2e YHGdKImqatK2xCAIW4lVllhYWpL4wkG4diSM9fz+zJoGZxjlINSjnFwRHVbbKmcj7mft 8jp0vQlUAw5wwHUA9lUkNmhq66PQQ/TRTfbpM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=VDGbg1yY0cbT2GrPT4GepUWpsOsi8PmsPojYNRI9W/K+YfWj1kQYT3MKZNiMmbaVaF Z+y5/bkjqca/i4dJcVgDXmsia4sgo3ePup2ry+tfLQkblr1Ns4IQPZi9cEbr4RxOpbJR tcT6h1ubgCQbtmGloetXmifeXYh8e3RiGnq+c= Original-Received: by 10.220.100.77 with SMTP id x13mr4552707vcn.78.1249306281084; Mon, 03 Aug 2009 06:31:21 -0700 (PDT) In-Reply-To: <87ljm1a6go.fsf@gmx.de> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:66703 Archived-At: Yes! It works. This problem is my headache for a long time. Finally, it's solved. Thanks, Michael! Thanks you all! On 8/3/09, Michael Albinus wrote: > Wang Lei writes: > >>>> In tramp mode, when I create a direcotry named =E4=BD=A0=E5=A5=BD, it = displays >>>> '??????', 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" 'appen= d) > (add-to-list 'tramp-remote-process-environment "LC_ALL=3Dzh_CN.utf8" 'app= end) > > Best regards, Michael. > --=20 Regards Lei