<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - pdfunite fails to merge many files (over 250 or so?)."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=58669">58669</a>
          </td>
        </tr>

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

        <tr>
          <th>Summary</th>
          <td>pdfunite fails to merge many files (over 250 or so?).
          </td>
        </tr>

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

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Mac OS X (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kabeya@ss.iij4u.or.jp
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>utils
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>poppler
          </td>
        </tr></table>
      <p>
        <div>
        <pre>pdfunite tmp000.pdf tmp001.pdf tmp002.pdf .... tmp253.pdf tmp254.pdf output.pdf

Ver. 0.20.5 on Mac OS X (10.7), it fails when 253 input files.

1. pdfunite.cc opens all input files at once, and merge them. Too many open
files.
No need to keep input files open?

2. In PDFDoc constructor, format string (arg no.) is wrong.

line 156.
    error(errIO, -1, "Couldn't open file '{0:t}': {0:s}.", fileName,
strerror(errno));

must be.

    error(errIO, -1, "Couldn't open file '{0:t}': {1:s}.", fileName,
strerror(errno));</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>