aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli/cli.h
diff options
context:
space:
mode:
authorVolker Aßmann <[email protected]>2017-06-06 19:26:45 +0200
committerVolker Aßmann <[email protected]>2017-06-06 19:26:45 +0200
commit74ce98cd71dee48b8260dfe6d0de5d8003d16b23 (patch)
tree37e35a79881b950c0468502c9ed517c76d0106dd /src/cli/cli.h
parentc4514146df5461763bb4164fc49ac41474e81b29 (diff)
Fix missing binary mode flag on compression ofstreams
Diffstat (limited to 'src/cli/cli.h')
-rw-r--r--src/cli/cli.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cli/cli.h b/src/cli/cli.h
index a5150d6d7..fcff94870 100644
--- a/src/cli/cli.h
+++ b/src/cli/cli.h
@@ -216,12 +216,12 @@ class Command
if(m_user_args.count("output"))
{
- m_output_stream.reset(new std::ofstream(get_arg("output")));
+ m_output_stream.reset(new std::ofstream(get_arg("output"), std::ios::binary));
}
if(m_user_args.count("error_output"))
{
- m_error_output_stream.reset(new std::ofstream(get_arg("error_output")));
+ m_error_output_stream.reset(new std::ofstream(get_arg("error_output"), std::ios::binary));
}
// Now insert any defaults for options not supplied by the user