<p>Some spec files fail to build under some locales, when %doc is used with glob.<br>
eg:</p>

<p>%build<br>
touch author AUTHORS Ch cha<br>
%files<br>
%doc [A-Z]*</p>

<p>Which results in:</p>

<p>LANG=fr LC_COLLATE=fr LC_ALL=fr rpmbuild -ba SPECS/null.spec<br>
(...)<br>
error: Installed (but unpackaged) file(s) found:<br>
   /usr/share/doc/null/cha<br>
   /usr/share/doc/null/debugfiles.list<br>
   /usr/share/doc/null/debuglinks.list<br>
   /usr/share/doc/null/debugsources.list</p>

<p>RPM build errors:<br>
    Installed (but unpackaged) file(s) found:<br>
   /usr/share/doc/null/cha<br>
   /usr/share/doc/null/debugfiles.list<br>
   /usr/share/doc/null/debuglinks.list<br>
   /usr/share/doc/null/debugsources.list</p>

<p>Which is obviously not expected...</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/rpm-software-management/rpm/pull/45'>https://github.com/rpm-software-management/rpm/pull/45</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>fix %doc with glob with some locales</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/45/files#diff-0">build/files.c</a>
    (1)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/rpm-software-management/rpm/pull/45.patch'>https://github.com/rpm-software-management/rpm/pull/45.patch</a></li>
  <li><a href='https://github.com/rpm-software-management/rpm/pull/45.diff'>https://github.com/rpm-software-management/rpm/pull/45.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/rpm-software-management/rpm/pull/45">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ANb801scsD-g2qo5G-zd3lzLtnpEuZ5Uks5paucjgaJpZM4HGY8f.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/rpm-software-management/rpm/pull/45"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>