FreeBSD 6.x + Netatalk + Samba 交叉測試...
FreeBSD 6.x + Netatalk 2.0.3 CJK patched + Samba 3.0.22 交叉測試... @.@a
一些注意事項:
1. 在 smb.conf 當中設定 "unix charset" 與 "display charset" 時最好相同,
否則很容易出現亂馬的情況。(參考下面解說,並請參考:
http://phorum.vbird.org/viewtopic.php?t=22001)
2. Write/Read OK 或 Write/Read Mangled 代表從 PC 或 Mac 拷貝檔案到分享出
來的卷宗的結果,netatalk 與 samba 都設定在 /home/share
3. 每測試不同的設定,我會將相關服務停止,然後清除 /home/share 裡面所有東
西。
4. PC 有使用 Unicode 補完計畫 (http://uao.cpatch.org/) 修補過。
5. 測試檔案包括日文檔名,例如:"竹井詩織里 - 世界止めて.mp3"
(當然,那是我從 http://www.shinkong-being.com.tw 買的 CD 轉出來的 XD)
6. 我只設定 setenv LC_CTYPE=zh_TW.Big5 與 LC_CTYPE=en_US.ISO8859-1 以及
LC_CTYPE=UTF8, LANG 則維持 en_US.ISO8859-1 感覺沒差ㄟ... 包括用 mc 來看
(包括用 SecureNetTerm 透過 ssh2 連線或直接在 console 底下...)
似乎要在 X 底下才能區分差別...
7. 沒空整理成表格,自己看看吧... :p
===========================================================================
smb.conf
[global]
dos charset = CP950
unix charset = CP950
display charset = CP950
===========================================================================
afpd.conf
-unixcodepage ISO-8859-1 -maccodepage MAC_CHINESE_TRAD
AppleVolumes.default
volcharset:CP950 maccharset:MAC_CHINESE_TRAD
Write/Read OK (in FreeBSD Mac OK, PC OK, but NOT Japanese file name,
PC Japanese file name mangled, Mac Japanese file OK.)
===========================================================================
afpd.conf
-unixcodepage ISO-8859-1 -maccodepage MAC_CHINESE_TRAD
AppleVolumes.default
volcharset:zh_TW.Big5 maccharset:MAC_CHINESE_TRAD
Apr 14 15:01:24 bad afpd[1778]: Required conversion from zh_TW.Big5 to UCS-2 not supported
Apr 14 15:01:24 bad afpd[1778]: Setting codepage zh_TW.Big5 as volume codepage failed
Connection Failed
===========================================================================
afpd.conf
-unixcodepage ISO-8859-1 -maccodepage MAC_CHINESE_TRAD
AppleVolumes.default
volcharset:BIG5 maccharset:MAC_CHINESE_TRAD
Apr 14 15:17:58 bad afpd[1993]: WARNING: volume encoding BIG5 is *not* supported by netatalk, expect problems !!!!
Write/Read OK
===========================================================================
afpd.conf
-unixcodepage ISO-8859-1 -maccodepage MAC_CHINESE_TRAD
AppleVolumes.default
volcharset:MAC_CHINESE_TRAD maccharset:MAC_CHINESE_TRAD
Apr 14 15:20:03 bad afpd[2051]: WARNING: volume encoding MAC_CHINESE_TRAD is *not* supported by netatalk, expect problems !!!!
Write/Read OK
===========================================================================
afpd.conf
-unixcodepage ISO-8859-1 -maccodepage MAC_CHINESE_TRAD
AppleVolumes.default
volcharset:FOOBAR maccharset:MAC_CHINESE_TRAD
Apr 14 15:21:38 bad afpd[2087]: Required conversion from FOOBAR to UCS-2 not supported
Apr 14 15:21:38 bad afpd[2087]: Setting codepage FOOBAR as volume codepage failed
Connection Failed
===========================================================================
afpd.conf
-unixcodepage ISO-8859-1 -maccodepage MAC_CHINESE_TRAD
AppleVolumes.default
volcharset:UTF8 maccharset:MAC_CHINESE_TRAD
Write/Read Mangled
===========================================================================
===========================================================================
afpd.conf
-unixcodepage CP950 -maccodepage MAC_CHINESE_TRAD
AppleVolumes.default
volcharset:CP950 maccharset:MAC_CHINESE_TRAD
Write/Read OK
===========================================================================
afpd.conf
-unixcodepage CP950 -maccodepage MAC_CHINESE_TRAD
AppleVolumes.default
volcharset:zh_TW.Big5 maccharset:MAC_CHINESE_TRAD
Apr 14 15:26:13 bad afpd[2176]: Required conversion from zh_TW.Big5 to UCS-2 notsupported
Apr 14 15:26:13 bad afpd[2176]: Setting codepage zh_TW.Big5 as volume codepage failed
Connection Failed
===========================================================================
afpd.conf
-unixcodepage CP950 -maccodepage MAC_CHINESE_TRAD
AppleVolumes.default
volcharset:BIG5 maccharset:MAC_CHINESE_TRAD
Apr 14 15:27:50 bad afpd[2210]: WARNING: volume encoding BIG5 is *not* supported by netatalk, expect problems !!!!
Write/Read OK
===========================================================================
afpd.conf
-unixcodepage CP950 -maccodepage MAC_CHINESE_TRAD
AppleVolumes.default
volcharset:MAC_CHINESE_TRAD maccharset:MAC_CHINESE_TRAD
Apr 14 15:29:37 bad afpd[2260]: WARNING: volume encoding MAC_CHINESE_TRAD is *not* supported by netatalk, expect problems !!!!
Write/Read OK
===========================================================================
afpd.conf
-unixcodepage CP950 -maccodepage MAC_CHINESE_TRAD
AppleVolumes.default
volcharset:UTF8 maccharset:MAC_CHINESE_TRAD
Write/Read OK
===========================================================================
afpd.conf
-unixcodepage CP950 -maccodepage MAC_CHINESE_TRAD
AppleVolumes.default
volcharset:FOOBAR maccharset:MAC_CHINESE_TRAD
Apr 14 15:23:43 bad afpd[2138]: Required conversion from FOOBAR to UCS-2 not supported
Apr 14 15:23:43 bad afpd[2138]: Setting codepage FOOBAR as volume codepage failed
Connection Failed
===========================================================================
===========================================================================
afpd.conf
-unixcodepage UTF8 -maccodepage MAC_CHINESE_TRAD
AppleVolumes.default
volcharset:CP950 maccharset:MAC_CHINESE_TRAD
Write/Read OK
===========================================================================
afpd.conf
-unixcodepage UTF8 -maccodepage MAC_CHINESE_TRAD
AppleVolumes.default
volcharset:zh_TW.Big5 maccharset:MAC_CHINESE_TRAD
Apr 14 15:35:33 bad afpd[2383]: Required conversion from zh_TW.Big5 to UCS-2 not supported
Apr 14 15:35:33 bad afpd[2383]: Setting codepage zh_TW.Big5 as volume codepage failed
Connection Failed
===========================================================================
afpd.conf
-unixcodepage UTF8 -maccodepage MAC_CHINESE_TRAD
AppleVolumes.default
volcharset:BIG5 maccharset:MAC_CHINESE_TRAD
Apr 14 15:37:24 bad afpd[2426]: WARNING: volume encoding BIG5 is *not* supported by netatalk, expect problems !!!!
Write/Read OK
===========================================================================
afpd.conf
-unixcodepage UTF8 -maccodepage MAC_CHINESE_TRAD
AppleVolumes.default
volcharset:MAC_CHINESE_TRAD maccharset:MAC_CHINESE_TRAD
Apr 14 15:32:12 bad afpd[2311]: WARNING: volume encoding MAC_CHINESE_TRAD is *not* supported by netatalk, expect problems !!!!
Write/Read OK
===========================================================================
afpd.conf
-unixcodepage UTF8 -maccodepage MAC_CHINESE_TRAD
AppleVolumes.default
volcharset:UTF8 maccharset:MAC_CHINESE_TRAD
Write/Read Mangled
===========================================================================
===========================================================================
afpd.conf
-unixcodepage zh_TW.Big5 -maccodepage MAC_CHINESE_TRAD
AppleVolumes.default
volcharset:CP950 maccharset:MAC_CHINESE_TRAD
Apr 14 14:55:07 bad afpd[1688]: Loading ConfigFile
Apr 14 14:55:07 bad afpd[1688]: Required conversion from zh_TW.Big5 to UCS-2 not supported
Apr 14 14:55:07 bad afpd[1688]: setting Unix codepage to 'zh_TW.Big5' failed
Write/Read OK
===========================================================================
===========================================================================
afpd.conf
-unixcodepage BIG5 -maccodepage MAC_CHINESE_TRAD
AppleVolumes.default
volcharset:CP950 maccharset:MAC_CHINESE_TRAD
Apr 14 15:48:10 bad afpd[2571]: WARNING: volume encoding CP950 is *not* supported by netatalk, expect problems !!!!
Write/Read OK
===========================================================================
===========================================================================
afpd.conf
-unixcodepage MAC_CHINESE_TRAD -maccodepage MAC_CHINESE_TRAD
AppleVolumes.default
volcharset:CP950 maccharset:MAC_CHINESE_TRAD
Apr 14 15:50:47 bad afpd[2628]: WARNING: volume encoding CP950 is *not* supported by netatalk, expect problems !!!!
Write/Read OK
===========================================================================
===========================================================================
smb.conf
[global]
dos charset = CP950
unix charset = UTF8
display charset = UTF8
===========================================================================
afpd.conf
-unixcodepage UTF8 -maccodepage MAC_CHINESE_TRAD
AppleVolumes.default
volcharset:UTF8 maccharset:MAC_CHINESE_TRAD
Write/Read OK incluse Japanese file name (in FreeBSD Mangled)
===========================================================================
===========================================================================
smb.conf
[global]
dos charset = CP950
unix charset = CP950
display charset = UTF8
===========================================================================
afpd.conf
-unixcodepage UTF8 -maccodepage MAC_CHINESE_TRAD
AppleVolumes.default
volcharset:UTF8 maccharset:MAC_CHINESE_TRAD
Write/Read Mangled (in FreeBSD Mac Mangled PC OK)
===========================================================================
===========================================================================
smb.conf
[global]
dos charset = UTF8
unix charset = CP950
display charset = UTF8
===========================================================================
afpd.conf
-unixcodepage UTF8 -maccodepage MAC_CHINESE_TRAD
AppleVolumes.default
volcharset:UTF8 maccharset:MAC_CHINESE_TRAD
Write/Read Mangled (in FreeBSD Mac Mangled PC OK, but NOT Japanese file name)
===========================================================================
※ 相關報導:* Netatalk 2.x CJK 支援公開測試
* Netatalk 2.0.3 + FreeBSD 4.x 中文字碼的支援
Only friends can post a comment, Login first