Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: whoisterence on January 18, 2011, 07:01:02 AM

Title: Chinese or Unicode Filenames with mount.cifs or ntfs-3g
Post by: whoisterence on January 18, 2011, 07:01:02 AM
I am able to read Chinese in Firefox, so I should have fonts setup properly.

I have tried the rxvt-unicode terminal extension, but even if I use rxvtc -fn xft:MingLiU, the chinese filenames on my network (mounted using cifs) or local (mounted using ntfs-3g) still show up as ??? question marks?

I tried mount.cifs with iocharset=unicode option.
Title: Re: Chinese or Unicode Filenames with mount.cifs or ntfs-3g
Post by: Syun on January 18, 2011, 10:29:32 AM
Hi.
I'm Japanese. So I don't know Chinese environment.
I think that you need to build kernel modules for supports native language.
Title: Re: Chinese or Unicode Filenames with mount.cifs or ntfs-3g
Post by: curaga on January 18, 2011, 11:40:19 AM
CONFIG_NLS_UTF8=y

Unicode is supported.
Title: Re: Chinese or Unicode Filenames with mount.cifs or ntfs-3g
Post by: whoisterence on January 18, 2011, 11:08:02 PM
Syun, can you get Japanese filenames?

New things I tried.

-recompiled urxvt with ./configure --enable-everything --enable-xft
I think the current urxvt extension didn't include many encodings.

-set the locale LANG=zh_TW.utf8
-run using urxvt -fn "xft:MingLiu"

I created a utf8 encoded text file and now I can see the Chinese characters in the file, but when I do "ls" still showing question marks.

Also, when I do an "ls" I get the following messages:
ls: ./???????.doc: No such file or directory

Seems to me "ls" is not UTF8 ready?  Maybe it's the way busybox was compiled?
Title: Re: Chinese or Unicode Filenames with mount.cifs or ntfs-3g
Post by: whoisterence on January 18, 2011, 11:34:43 PM
I used "echo *" instead of "ls" and I can see the Chinese filenames, this is narrowing the problem down to busybox ls.
Title: Re: Chinese or Unicode Filenames with mount.cifs or ntfs-3g
Post by: tinypoodle on January 19, 2011, 12:18:09 AM
I used "echo *" instead of "ls" and I can see the Chinese filenames, this is narrowing the problem down to busybox ls.

GNU ls is in coreutils.tcz   ;)
Title: Re: Chinese or Unicode Filenames with mount.cifs or ntfs-3g
Post by: whoisterence on January 19, 2011, 03:52:40 AM
Yup that did the trick.

In summary to be able to list Chinese filenames

-have a Chinese font installed
-mount your cifs/ntfs-3g drives
-use the urxvt-daemon extension is OK.  No need to recompile urxvt
-need the coreutils extension, because busybox ls does not show UTF8
-set the LANG=en_US.utf8
-run urxvtd
-run urxvtc -fn "xft:mingliu"
-ls and you should see Chinese filenames