26 lines
737 B
Diff
26 lines
737 B
Diff
From c8e50b6efe18ff5ede06f0321d27d572dc3a6bc5 Mon Sep 17 00:00:00 2001
|
|
From: Soeren Apel <soeren@apelpie.net>
|
|
Date: Sun, 31 Jan 2016 15:10:10 +0100
|
|
Subject: [PATCH 02/13] Fix #733: Open import files using binary mode
|
|
|
|
---
|
|
pv/devices/inputfile.cpp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/pv/devices/inputfile.cpp b/pv/devices/inputfile.cpp
|
|
index 3ddc8ae..22c9b1c 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();
|
|
--
|
|
2.4.3
|
|
|