From: Soeren Apel Date: Sun, 31 Jan 2016 14:10:10 +0000 (+0100) Subject: Fix #733: Open import files using binary mode X-Git-Tag: pulseview-0.4.0~351 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=c8e50b6efe18ff5ede06f0321d27d572dc3a6bc5;p=pulseview.git Fix #733: Open import files using binary mode --- diff --git a/pv/devices/inputfile.cpp b/pv/devices/inputfile.cpp index 3ddc8ae0..22c9b1c8 100644 --- a/pv/devices/inputfile.cpp +++ b/pv/devices/inputfile.cpp @@ -70,7 +70,7 @@ void InputFile::run() assert(input_); interrupt_ = false; - std::ifstream f(file_name_); + std::ifstream f(file_name_, std::ios::binary); while (!interrupt_ && f) { f.read(buffer, BufferSize); const std::streamsize size = f.gcount();