Re: [問題]fc10 用 mount -o iocharset=big5

看板Linux作者時間15年前 (2008/12/12 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串5/5 (看更多)
※ 引述《peterpan (apan)》之銘言: > ※ 引述《kenduest (小州)》之銘言: > > 2. 請問你的 windows 分割區是 vfat 還是 ntfs > vfat, 不論 mount 時 iocharset 是 big5 或 gb2312, > 顯示出來的都是 utf8 碼。 終於找到可能的原因及方法了! ^^ 好像是由於 selinux 關係, mount vfat 時會預設 utf8 不會隨 iocharset 改變! 若要用 iocharset 這選項, 需要另一選項 uni_xlate 或 utf8=0, 如此 iocharset 的設定才會生效。 以下節錄 mount(8) man 的部份內容, 不曉得我有沒誤解? uni_xlate Translate unhandled Unicode characters to special escaped sequences. This lets you backup and restore filenames that are created with any Unicode characters. Without this option, a ’?’ is used when no translation is possible. The escape character is ’:’ because it is otherwise illegal on the vfat filesystem. The escape sequence that gets used, where u is the unicode charac- ter, is: ’:’, (u & 0x3f), ((u>>6) & 0x3f), (u>>12). utf8 UTF8 is the filesystem safe 8-bit encoding of Unicode that is used by the console. It can be be enabled for the filesystem with this option or disabled with utf8=0, utf8=no or utf8=false. If ‘uni_xlate’ gets set, UTF8 gets disabled. -- ※ Origin: SayYA 資訊站 <bbs.sayya.org> ◆ From: 60-250-124-198.hinet-ip.hinet.net
文章代碼(AID): #19GLLX00 (Linux)
文章代碼(AID): #19GLLX00 (Linux)