[CentOS] can't copy file.

dxuranus

dxuranus at gmail.com
Mon Sep 11 01:46:48 UTC 2006


 i mount a windows share like this:
mount -t smbfs -o
iocharset=gb2312,codepage=936,username=administrator //192.168.10.27/cvs /mnt/windows
and try to copy file from /mnt/windows to my local disk.
but if came to file with chinese name it always told me "cp: can't creat
normal file ,  invalid argument."
by the way i can see the file name (in chinese),
and here is my locale:
LANG=zh_CN
LC_CTYPE="zh_CN"
LC_NUMERIC="zh_CN"
LC_TIME="zh_CN"
LC_COLLATE="zh_CN"
LC_MONETARY="zh_CN"
LC_MESSAGES="zh_CN"
LC_PAPER="zh_CN"
LC_NAME="zh_CN"
LC_ADDRESS="zh_CN"
LC_TELEPHONE="zh_CN"
LC_MEASUREMENT="zh_CN"
LC_IDENTIFICATION="zh_CN"
LC_ALL=
 i try all possible charset utf-8,gbk,cp936,or gb2312.
i have focus on this tow days,if i still can't solve this i will crazy.
thanks fro any help! 





More information about the CentOS mailing list