From: HAT <ha...@fa...> - 2007-08-01 15:48:01
|
What do the following two macros mean? #define MAX_CHARSETS in libatalk/unicode/charcnv.c #define NUM_CHARSETS in include/atalk/unicode.h Using netatalk 2.0.3, all maccharsets can be mounted. However, when netatalk 2.1dev (CVS HEAD) is used, some maccharsets cannot be mounted. Is the value of MAX_CHARSETS or NUM_CHARSETS small? NETATALK 2.0.3 ============================================= #define MAX_CHARSETS 10 in libatalk/unicode/charcnv.c #define NUM_CHARSETS 5 in include/atalk/unicode.h --- AppleVolumes.default ----------------------------------- /export/test01 "test01" maccharset:MAC_CENTRALEUROPE /export/test02 "test02" maccharset:SHIFT_JIS /export/test03 "test03" maccharset:MAC_ROMAN /export/test04 "test04" maccharset:MAC_HEBREW /export/test05 "test05" maccharset:MAC_TURKISH /export/test06 "test06" maccharset:MAC_CYRILLIC --- log ---------------------------------------------------- afpd[2840][charcnv.c:238]: D5:Default: Added charset MAC_CENTRALEUROPE with handle 5 afpd[2840][charcnv.c:238]: D5:Default: Added charset SHIFT_JIS with handle 6 afpd[2840][charcnv.c:238]: D5:Default: Added charset MAC_HEBREW with handle 7 afpd[2840][charcnv.c:238]: D5:Default: Added charset MAC_TURKISH with handle 8 afpd[2840][charcnv.c:238]: D5:Default: Added charset MAC_CYRILLIC with handle 9 NETATALK 2.1dev ============================================ #define MAX_CHARSETS 10 in libatalk/unicode/charcnv.c #define NUM_CHARSETS 6 in include/atalk/unicode.h --- AppleVolumes.default ----------------------------------- /export/test01 "test01" maccharset:MAC_CENTRALEUROPE /export/test02 "test02" maccharset:SHIFT_JIS /export/test03 "test03" maccharset:MAC_CHINESE_SIMP /export/test04 "test04" maccharset:MAC_CHINESE_TRAD /export/test05 "test05" maccharset:MAC_JAPANESE /export/test06 "test06" maccharset:MAC_KOREAN /export/test07 "test07" maccharset:MAC_ROMAN /export/test08 "test08" maccharset:MAC_HEBREW /export/test09 "test09" maccharset:MAC_TURKISH /export/test10 "test10" maccharset:MAC_CYRILLIC --- log ---------------------------------------------------- afpd[2344][charcnv.c:238]: D5:Default: Added charset MAC_CENTRALEUROPE with handle 6 afpd[2344][charcnv.c:238]: D5:Default: Added charset SHIFT_JIS with handle 7 afpd[2344][charcnv.c:238]: D5:Default: Added charset MAC_CHINESE_SIMP with handle 8 afpd[2344][charcnv.c:238]: D5:Default: Added charset MAC_CHINESE_TRAD with handle 9 afpd[2344][charcnv.c:208]: D5:Default: Adding charset MAC_JAPANESE failed, too many charsets (max. 10 allowed) afpd[2344][volume.c:1767]: E:AFPDaemon: Setting codepage MAC_JAPANESE as mac codepage failed afpd[2344][charcnv.c:208]: D5:Default: Adding charset MAC_KOREAN failed, too many charsets (max. 10 allowed) afpd[2344][volume.c:1767]: E:AFPDaemon: Setting codepage MAC_KOREAN as mac codepage failed afpd[2344][charcnv.c:208]: D5:Default: Adding charset MAC_HEBREW failed, too many charsets (max. 10 allowed) afpd[2344][volume.c:1767]: E:AFPDaemon: Setting codepage MAC_HEBREW as mac codepage failed afpd[2344][charcnv.c:208]: D5:Default: Adding charset MAC_TURKISH failed, too many charsets (max. 10 allowed) afpd[2344][volume.c:1767]: E:AFPDaemon: Setting codepage MAC_TURKISH as mac codepage failed afpd[2344][charcnv.c:208]: D5:Default: Adding charset MAC_CYRILLIC failed, too many charsets (max. 10 allowed) afpd[2344][volume.c:1767]: E:AFPDaemon: Setting codepage MAC_CYRILLIC as mac codepage failed -- HAT |