projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcfe0a0
)
Fix #733: Open import files using binary mode
author
Soeren Apel
<soeren@apelpie.net>
Sun, 31 Jan 2016 14:10:10 +0000
(15:10 +0100)
committer
Soeren Apel
<soeren@apelpie.net>
Sun, 31 Jan 2016 14:10:10 +0000
(15:10 +0100)
pv/devices/inputfile.cpp
patch
|
blob
|
history
diff --git
a/pv/devices/inputfile.cpp
b/pv/devices/inputfile.cpp
index 3ddc8ae00db06042b97f5e10f599560b3d69b22b..22c9b1c8297e4e3d8d71eb73d925c122fc67c8f9 100644
(file)
--- 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();