<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - FcLangSetCompare() gives an incorrect result when two charsets come from different "buckets" of fcLangCountrySets"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=101351">101351</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>FcLangSetCompare() gives an incorrect result when two charsets come from different "buckets" of fcLangCountrySets
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>fontconfig
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>2.12
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>library
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>fontconfig-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>f.rougon@free.fr
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>freedesktop@behdad.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=131804" name="attach_131804" title="Commit (as output by 'git format-patch')">attachment 131804</a> <a href="attachment.cgi?id=131804&action=edit" title="Commit (as output by 'git format-patch')">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=101351&attachment=131804'>[review]</a>
Commit (as output by 'git format-patch')

As written at:
<a href="https://lists.freedesktop.org/archives/fontconfig/2017-June/005944.html">https://lists.freedesktop.org/archives/fontconfig/2017-June/005944.html</a>

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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>