[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Chinese in tramp become ????s
From: |
Wang Lei |
Subject: |
Re: Chinese in tramp become ????s |
Date: |
Sat, 1 Aug 2009 09:50:27 +0800 |
On 7/31/09, Michael Albinus <michael.albinus@gmx.de> wrote:
> Wang Lei <wanglei.198112@gmail.com> writes:
>
>> Thanks for your help and patient, first.
>
> What happens on the remote host, when you apply
>
> /bin/ls -al /path/
>
> (assuming, that you have created /path/你好 )
[~/tmp] /bin/ls -al
total 48
drwxr-xr-x 5 lei lei 4096 2009-08-01 09:49 .
drwxr-xr-x 27 lei lei 8192 2009-08-01 09:43 ..
drwxr-xr-x 14 lei lei 4096 2009-07-30 18:12 coreutils-7.4
-rw-r--r-- 1 lei lei 18889 2009-06-05 08:47 coreutils_7.4-2.diff.gz
-rw-r--r-- 1 lei lei 1247 2009-06-05 08:47 coreutils_7.4-2.dsc
drwxr-xr-x 11 lei lei 4096 2009-02-10 12:36 grep-2.5.4
drwxr-xr-x 2 lei lei 4096 2009-08-01 09:49 你好
>
>> [~] locale
>> LANG=en_US.UTF-8
>> LC_CTYPE=zh_CN.utf8
>> LC_NUMERIC="en_US.UTF-8"
>> LC_TIME="en_US.UTF-8"
>> LC_COLLATE="en_US.UTF-8"
>> LC_MONETARY="en_US.UTF-8"
>> LC_MESSAGES="en_US.UTF-8"
>> LC_PAPER="en_US.UTF-8"
>> LC_NAME="en_US.UTF-8"
>> LC_ADDRESS="en_US.UTF-8"
>> LC_TELEPHONE="en_US.UTF-8"
>> LC_MEASUREMENT="en_US.UTF-8"
>> LC_IDENTIFICATION="en_US.UTF-8"
>> LC_ALL=
>
> Is this on the local or the remote host?
>
I don't use tramp from remote, just as a convenience for su.
(require 'tramp)
(setq password-cache nil
tramp-default-method "su"
tramp-default-user "root"
tramp-default-host "debian")
(add-to-list 'backup-directory-alist (cons tramp-file-name-regexp nil))
>> 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
>
> Best regards, Michael.
>
Then. Maybe it's a su's problem?
--
Regards
Lei