[HarfBuzz] _from_string functions require now len too

Behdad Esfahbod behdad at behdad.org
Sun Sep 18 11:07:13 PDT 2011


On 09/18/11 14:03, Jesse Jaara wrote:
> Im currently maintaining a package for a git version of libass in ArchLinux,.
> But a recent git commit to harfbuz broke libass. As the hb_language_from_string
> now requires the len param too, but libass currently only passes the string.
> I have filed a bug to upstream. And have currently resolved the building
> problem a with a patch that, passes 0 as the len. That was suggested by
> some one in one #c irc-channel. Currently that makes it build and basic
> subtitle handling is working fine in mplayer. But Im still wondering what would
> be the right way to fix this.
> What exacly is that len param for?

Pass -1, which would mean "nul-terminated".

behdad

> Can it be some static number like the 0, or isit calculated from somewhere?



More information about the HarfBuzz mailing list