Dear Sir, With the popularity of MS, I have to upload MS file to the Linux sometime. For a filename with Chinese character I found the odd behavior and maybe you can throw some light into what could be the reason.
1) The ls -l command shown something like this: -rw-rw---- 1 penit_yuzhu penit 23552 Apr 30 15:20 Date????.doc -rw-r--r-- 1 penit_yuzhu root 202 May 2 10:59 Test&ZeVnHw-.doc 2) If I use ls -l | more; it will show the Chinese character correctly 3) If I save ls -d > t and then use vi t to open it, it will also show the Chinese character correctly. 4) So it appears that the ls command has some kind of weakness that did not handle the display of foreign character correctly. 5) The LANG=en and if I change LANG=zh_CH.GB2312, it does not make any difference. 6) Hexdump would give the following: 00000000 44 61 74 65 c8 d5 c6 da 2e 64 6f 63 0a 54 65 73 |Date.....doc.Tes| 00000010 74 26 5a 65 56 6e 48 77 2d 2e 64 6f 63 0a |t&ZeVnHw-.doc.| Both files are in format of: CCCCxx.doc where C is ASCHII char and xx is two Chinese character menaing date. The Datexx.doc is upload using SSH and the Testxx.doc is rename under MS Outlook. Rgds, Kfl. PS. Can you point me to a user group of Linux. ------------------------------------------------------------------------ ------------------------------------ IT&C (HK) Ltd. www.itnc.com PENIT (China) Ltd. www.penit.com : Tel: +86 139-228-40560 E-Mail: [EMAIL PROTECTED] SKYPE: kflee2000 22A, Seascape Plaza, 18 Taizi Road,Shekou, Shenzhen, PROC. ------------------------------------------------------------------------ ------------------------------------ _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils