From d2c174f2e1eeed490ab9f61b23b887e56eda1bce Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 17 May 2012 14:16:40 +1000 Subject: [PATCH] Change PBM output mode to system default. It's ASCII output at the moment anyway, so it shouldn't be an issue. --- image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image.cpp b/image.cpp index fe170ca1..f7fe2bc1 100644 --- a/image.cpp +++ b/image.cpp @@ -39,7 +39,7 @@ write_netpbm (const uint8_t *restrict pixels, CHECK_HARD (height > 0); // Establish an output stream - std::ofstream output (path.native (), std::ios::binary); + std::ofstream output (path.string ()); if (!output.good ()) throw util::output_error ("Unable to open output file");