tar: Can't translate pathname 中文檔名 to UTF-8 - BBS
By Elvira
at 2012-06-19T11:22
at 2012-06-19T11:22
Table of Contents
FreeBSD 10.0-CURRENT
壓縮時, tar zcvPf 對於其中的中文檔名,會出現
Can't translate pathname 中文檔名 to UTF-8
解壓時, tar zxvPf 會出現
Pathname can't be converted from UTF-8 to current locale
已google,也man過,不知道問題在什麼地方。想請先賢指教,感謝
有試過
tar(c/x)指令前下 export LC_ALL=en_US.UTF-8
指令之後下 export LC_ALL=zh_TW.Big5
可以正常。但此方法頗鳥
目前設定
# set | grep LC_
LC_ADDRESS=zh_TW.Big5
LC_ALL=zh_TW.Big5
LC_COLLATE=zh_TW.Big5
LC_CTYPE=zh_TW.Big5
LC_IDENTIFICATION=zh_TW.Big5
LC_MEASUREMENT=zh_TW.Big5
LC_MESSAGES=zh_TW.Big5
LC_MONETARY=zh_TW.Big5
LC_NAME=zh_TW.Big5
LC_NUMERIC=zh_TW.Big5
LC_PAPER=zh_TW.Big5
LC_TELEPHONE=zh_TW.Big5
LC_TIME=zh_TW.Big5
--
Tags:
BBS
All Comments
Related Posts
hychen - 淺談 javascript prototype
By Queena
at 2012-06-18T16:46
at 2012-06-18T16:46
如何使用FreeBSD連接2個LAN?
By Susan
at 2012-05-30T19:50
at 2012-05-30T19:50
Re: 如何設定連結能直接開新分頁呢?
By Jake
at 2012-05-27T16:36
at 2012-05-27T16:36
如何設定連結能直接開新分頁呢?
By Eartha
at 2012-05-26T21:06
at 2012-05-26T21:06
如何完整轉移FreeBSD系統?
By Heather
at 2012-05-02T18:54
at 2012-05-02T18:54