diff options
-rw-r--r-- | app/main.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/main.cpp b/app/main.cpp index 5eba3db..c2174a4 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -223,10 +223,14 @@ int main(int argc, char *argv[]) parser.value(port).toUShort()); infile.reset(socket); } else { - if (parser.isSet(input)) + if (parser.isSet(input)) { infile.reset(new QFile(parser.value(input))); - else + } else { +#ifdef Q_OS_WIN + _setmode(fileno(stdin), O_BINARY); +#endif infile.reset(new PerfStdin); + } } bool ok = false; |