diff options
author | Jay Berkenbilt <ejb@ql.org> | 2009-07-15 05:47:44 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2009-07-15 05:47:44 +0200 |
commit | a1c0aaf03adf0344b34dd591f9103479f249e965 (patch) | |
tree | b7d801e15d733791b47328349abd86f0317ce207 /qpdf/test_driver.cc | |
parent | 7acc0498ebfe13c48ecbaee718537a4c088cca5e (diff) | |
download | qpdf-a1c0aaf03adf0344b34dd591f9103479f249e965.tar.zst |
windows fixes
git-svn-id: svn+q:///qpdf/trunk@684 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'qpdf/test_driver.cc')
-rw-r--r-- | qpdf/test_driver.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qpdf/test_driver.cc b/qpdf/test_driver.cc index cdaa4cc5..192577c5 100644 --- a/qpdf/test_driver.cc +++ b/qpdf/test_driver.cc @@ -126,6 +126,7 @@ void runtest(int n, char const* filename) std::cout << "Raw stream data:" << std::endl; std::cout.flush(); + QUtil::binary_stdout(); PointerHolder<Pl_StdioFile> out = new Pl_StdioFile("raw", stdout); qtest.pipeStreamData(out.getPointer(), false, false, false); @@ -133,6 +134,7 @@ void runtest(int n, char const* filename) if (qtest.pipeStreamData(0, true, false, false)) { std::cout.flush(); + QUtil::binary_stdout(); out = new Pl_StdioFile("filtered", stdout); qtest.pipeStreamData(out.getPointer(), true, false, false); std::cout << std::endl << "End of stream data" << std::endl; @@ -172,6 +174,7 @@ void runtest(int n, char const* filename) QPDFObjectHandle kids = pages.getKey("/Kids"); QPDFObjectHandle page = kids.getArrayItem(1); // second page QPDFObjectHandle contents = page.getKey("/Contents"); + QUtil::binary_stdout(); PointerHolder<Pl_StdioFile> out = new Pl_StdioFile("filtered", stdout); contents.pipeStreamData(out.getPointer(), true, false, false); } @@ -183,6 +186,7 @@ void runtest(int n, char const* filename) QPDFObjectHandle stream = streams.getArrayItem(i); std::cout << "-- stream " << i << " --" << std::endl; std::cout.flush(); + QUtil::binary_stdout(); PointerHolder<Pl_StdioFile> out = new Pl_StdioFile("tokenized stream", stdout); stream.pipeStreamData(out.getPointer(), true, true, false); |