[Fribidi-discuss] What length should I expect in fribidi functions?

Yedidyah Bar-David didi at tau.ac.il
Mon Aug 5 12:44:04 EST 2002


Hello,

I declared variables of length FRIBIDI_MAX_STRING_LENGTH in a library
that uses fribidi (the babylon parser of wordtrans). Now, in one of
the latest versions of fribidi, FRIBIDI_MAX_STRING_LENGTH became too
large to allocate beforehand.
I have a string in ISO8859-8. I want to convert it to unicode, then do
log2vis, then back to ISO8859-8.
What length temporary arrays should be? can charset-to-unicode
make it more than 4 times bigger? 6 times? More than that?
Is it documented anywhere?

In utf-8(7), it says:
       * UTF-8  encoded  UCS  characters  may  be up to six bytes
         long, however the Unicode standard specifies no  charac­
         ters  above  0x10ffff, so Unicode characters can only be
         up to four bytes long in UTF-8.

Thanks,

	Didi





More information about the FriBidi mailing list