diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-09-09 14:18:45 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-09-09 14:18:45 +0200 |
commit | 653cc04be4806a1eb4e7d1b72a4696fc20a22e47 (patch) | |
tree | 18958d73dac7f755b78628f96e2117565895daec /bbot/utility.txx | |
parent | 99221a546b10545a7ed7af53044b088217e150eb (diff) |
Use binary file mode for compressed content
Diffstat (limited to 'bbot/utility.txx')
-rw-r--r-- | bbot/utility.txx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bbot/utility.txx b/bbot/utility.txx index 3199a61..e7db0ee 100644 --- a/bbot/utility.txx +++ b/bbot/utility.txx @@ -152,9 +152,11 @@ namespace bbot bool d (f.extension () == "lz4"); - ifdstream ifs (f, (d - ? ifdstream::badbit - : ifdstream::badbit | ifdstream::failbit)); + ifdstream ifs (f, + (d ? fdopen_mode::binary : fdopen_mode::none), + (d + ? ifdstream::badbit + : ifdstream::badbit | ifdstream::failbit)); ilz4stream izs; if (d) |