<div dir="ltr">Please use the latest one. that should be fixed in 2.12.0 and later.<div><br></div><div><a href="https://cgit.freedesktop.org/fontconfig/commit/?id=e708e97c351d3bc9f7030ef22ac2f007d5114730" target="_blank" rel="noreferrer" style="display:inline!important">https://cgit.freedesktop.org/fontconfig/commit/?id=e708e97c351d3bc9f7030ef22ac2f007d5114730</a><br></div><div><br></div><div>and some  minor fixes after that too (just FYI if you want to cherry-pick it for backport or so)</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 2, 2016 at 10:09 AM, Lawrence D'Oliveiro <span dir="ltr"><<a href="mailto:ldo@geek-central.gen.nz" target="_blank">ldo@geek-central.gen.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, 29 Nov 2016 16:30:35 +0900, Akira TAGOH wrote:<br>
<br>
> Can you attach the example that can reproduce your issue?<br>
><br>
> FcNameParse() should generates the same FcPattern with the strings<br>
> generated by FcNameUnparse().<br>
<br>
</span>OK, I have narrowed it down. Attached is the simplest C program I could<br>
come up with to demonstrate the issue. Pass it a pattern string on the<br>
command line, e.g.<br>
<br>
    fc_pattern_2 sans-serif<br>
<br>
and it will print out some information about what it found. Having<br>
found a matching pattern, it calls FcNameUnparse to convert that to a<br>
pattern string, followed by FcNameParse to convert the string back to a<br>
pattern.<br>
<br>
If the pattern includes the “charset” property, the FcNameParse call<br>
fails, possibly even segfaults. Removing this property causes the parse<br>
(and the subsequent match) to succeed. I helpfully put the call<br>
“FcPatternDel(found_pat, FC_CHARSET);” inside an “if (true)” block, so<br>
you can try changing it to “if (false)” to observe the effect.<br>
<br>
I have libconfig 2.11.0 installed from the repo package on Debian<br>
Unstable.<br>
<br>______________________________<wbr>_________________<br>
Fontconfig mailing list<br>
<a href="mailto:Fontconfig@lists.freedesktop.org">Fontconfig@lists.freedesktop.<wbr>org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/fontconfig" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/fontconfig</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Akira TAGOH</div>
</div>