strchr_m() problem (Re: Integrate i18n SWAT)

TAKAHASHI Motonobu monyo at samba.gr.jp
Mon Aug 13 16:56:29 GMT 2001


Andrew, 

It seems that strchr_m() does not support multibyte codepages.
For example, under SJIS/EUC, a string consists of 1byte chars and
2byte chars. If you use iconv() against those multibyte codepage,
before calling iconv(), you have to separate ASCII, 1byte chars except
ASCII, 2byte chars from the string because the convert rule is
different.

It seems that this logic is omitted.

This is why under "unix charset = EUC-JP or Shift_JIS", SWAT
authorization failed. Replacing strchr_m() to strchr(), SWAT works
well as far as using ASCII chars :-(

-----
TAKAHASHI, Motonobu(monyo)         monyo at samba.org
Personal - http://home.monyo.com/
Samba Team - http://samba.org/     Samba-JP - http://www.samba.gr.jp/  
JWNTUG - http://www.jwntug.or.jp/  Analog-JP - http://www.jp.analog.cx/
MCSE+I, SCNA, CCNA, Turbo-CI









More information about the samba-technical mailing list