i18n question.

Jeremy Allison jra at samba.org
Tue Mar 16 02:21:07 GMT 2004


On Tue, Mar 16, 2004 at 10:16:53AM +0800, tridge at samba.org wrote:
> 
> To implement this I suggest we extend the "struct charset_functions"
> structure in the Samba built-in iconv implementation (see lib/iconv.c)
> to have optional function pointers for caseless_index() and perhaps
> other accelerator related functions. 
> 
> If a charset module does not provide these functions then we will fall
> back to emulating them via conversion to UTF-16 and the existing case
> table (which can easily be made to work with UTF-16, even though it
> was meant for UCS-2, thanks to the fact that non-UCS2 characters tend
> to be caseless.)
> 
> I think the above schemes will allow Samba to be _very_ fast for
> Japanese and Chinese character sets.

Very good idea (as usual :-) :-). FYI: I just finished fixing up
nmbd with correct support for SJIS NetBIOS names on the wire with
utf8 names internally (as these can be 3x larger :-). Please CVS
update & check it out...

Cheers & hope you're enjoying your 'holiday' :-).

Jeremy.


More information about the samba-technical mailing list