[Fontconfig-bugs] [Bug 101351] New: FcLangSetCompare() gives an incorrect result when two charsets come from different "buckets" of fcLangCountrySets
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Jun 8 14:07:49 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=101351
Bug ID: 101351
Summary: FcLangSetCompare() gives an incorrect result when two
charsets come from different "buckets" of
fcLangCountrySets
Product: fontconfig
Version: 2.12
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: library
Assignee: fontconfig-bugs at lists.freedesktop.org
Reporter: f.rougon at free.fr
QA Contact: freedesktop at behdad.org
Created attachment 131804
--> https://bugs.freedesktop.org/attachment.cgi?id=131804&action=edit
Commit (as output by 'git format-patch')
As written at:
https://lists.freedesktop.org/archives/fontconfig/2017-June/005944.html
In fcLangCountrySets, it may happen that two charsets for the same
language but different territories are found in different FcChar32
"buckets" (different "columns" on the same line). This is currently the
case for the following pairs:
mn-cn and mn-mn
pap-an and pap-aw
The FcLangSetCompare() code in current 'master' returns
FcLangDifferentLang instead of FcLangDifferentTerritory when
comparing:
an FcLangSet containing only mn-cn with one containing only mn-mn
or
an FcLangSet containing only pap-an with one containing only pap-aw
The attached patch fixes this problem.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20170608/5a28dffc/attachment-0001.html>
More information about the Fontconfig-bugs
mailing list