Bug 64906 - FcNameParse() should ignore leading whitespace in parameters
Summary: FcNameParse() should ignore leading whitespace in parameters
Status: RESOLVED FIXED
Alias: None
Product: fontconfig
Classification: Unclassified
Component: library (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Akira TAGOH
QA Contact: Behdad Esfahbod
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-23 10:33 UTC by Akira TAGOH
Modified: 2013-05-24 04:59 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Akira TAGOH 2013-05-23 10:33:30 UTC
The following example gives unexpected behavior and fails to match the pattern in some case.

$ fc-match ":family=Cantarell, sans-serif"
...
FcConfigSubstitute Pattern has 3 elts (size 16)
        family: "cantarell"(s) " sans-serif"(s)
        lang: "ja"(w)
        prgname: "lt-fc-match"(s)

Most built-in rules are fortunately not failed because "ignore-blanks" option works around as a side-effect.
Comment 1 Akira TAGOH 2013-05-24 04:59:17 UTC
Fixed in git.

...
FcConfigSubstitute Pattern has 3 elts (size 16)
        family: "Cantarell"(s) "sans-serif"(s)
        lang: "ja"(w)
        prgname: "lt-fc-match"(s)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.