[Fribidi-discuss] Re: BiDi WINE status and fribidi

Dov Grobgeld dov at imagic.weizmann.ac.il
Sat Aug 24 13:07:11 EST 2002


On Sat, Aug 24, 2002 at 04:40:39AM +0430, Behdad Esfahbod wrote:
> 
> Windows API, ans so WINE's uses UTF-16.  And WINE people reject 
> to use a 32bit bidi library and convert back and forth all the 
> time, so they need UTF-16 support internally.

I just looked at the fribidi source code and the only place which makes use of
the encoding of the string is (the static) fribidi_analyse_string().  It would
be quite easy to add an extra "encoding" parameter so that it would be easy to
support both UTF-16 and UCS4 (I refuse to say UTF-32, as there is no boundry
checks in fribidi. ;-). We could then enter the encoding as a property
of the FribidiEnv. The runtime overhead should be very small to get a library
that supports both encoding types.

Regards,
Dov





More information about the FriBidi mailing list