Commit 27f18e0f6724c3ff43637a47b516eaecd5fd74cf

Authored by Thorsten Schöning
Committed by Thorsten Schöning
1 parent fc2e491f

The kfo-PDF files for testing need to be copied using "binmode" or Windows will introduce \r\n.

qpdf: selecting --keep-open-files=n
qpdf: processing 001-kfo.pdf
WARNING: 001-kfo.pdf: file is damaged
WARNING: 001-kfo.pdf (offset 556): xref not found
WARNING: 001-kfo.pdf: Attempting to reconstruct cross-reference table
Showing 1 changed file with 1 additions and 0 deletions
qpdf/qtest/qpdf.test
@@ -1675,6 +1675,7 @@ $n_tests += 4; @@ -1675,6 +1675,7 @@ $n_tests += 4;
1675 for (my $i = 1; $i <= 201; ++$i) 1675 for (my $i = 1; $i <= 201; ++$i)
1676 { 1676 {
1677 open(F, sprintf(">%03d-kfo.pdf", $i)) or die; 1677 open(F, sprintf(">%03d-kfo.pdf", $i)) or die;
  1678 + binmode F;
1678 print F $content; 1679 print F $content;
1679 close(F); 1680 close(F);
1680 } 1681 }