]> sigrok.org Git - pulseview.git/commitdiff
Fix #733: Open import files using binary mode
authorSoeren Apel <redacted>
Sun, 31 Jan 2016 14:10:10 +0000 (15:10 +0100)
committerSoeren Apel <redacted>
Sun, 31 Jan 2016 14:10:10 +0000 (15:10 +0100)
pv/devices/inputfile.cpp

index 3ddc8ae00db06042b97f5e10f599560b3d69b22b..22c9b1c8297e4e3d8d71eb73d925c122fc67c8f9 100644 (file)
@@ -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();