[libvoikko] Strange bug in the interface between hfst-ospell and libvoikko

Sjur Moshagen sjurnm at mac.com
Mon Dec 16 17:24:46 EET 2013


16. des. 2013 kl. 17:11 skrev Gaup Børre <borre.gaup at uit.no>:

> I have been debugging hfst-ospell.
[...]
> What I found out was the following:
> When the call to extract_to_mem has been done at about line 270 in 
> ZHfstOspeller.cc the resulting variable full_data sometimes contains junk at 
> the end of the xml string.
[...]
> A hack to solve this problem is found in the patch below:

Patch applied in hfst svn at r3653.

Please test, and see if this helps. Also note that there is one corner case that is not handled: when the extra noise contains the character ‘>’.

Suggestions for alternative/improved ways of handling this, or to correct the behavior of libarchive would be very welcome.

Sjur



More information about the Libvoikko mailing list