help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Chinese in tramp become ????s


From: Michael Albinus
Subject: Re: Chinese in tramp become ????s
Date: Mon, 03 Aug 2009 06:04:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Wang Lei <wanglei.198112@gmail.com> writes:

>>> In tramp mode, when I create a direcotry named 你好, it displays
>>> '??????', this is the describe-char's output:
>>
>> Same here. However, if I open /ssh:host:/path/你好/ 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=zh_CN.utf8" 'append)
(add-to-list 'tramp-remote-process-environment "LC_ALL=zh_CN.utf8" 'append)

Best regards, Michael.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]