diff options
author | Nathan Lanza <nathan@lanza.io> | 2018-11-05 22:25:00 +0000 |
---|---|---|
committer | Nathan Lanza <nathan@lanza.io> | 2018-11-05 22:25:00 +0000 |
commit | c61ee1bd04122d1ab92493d478745b7ccba2364f (patch) | |
tree | da4e6af3e04a6bf4c0370f00a9765b61646da663 /llvm/tools/llvm-readobj/ELFDumper.cpp | |
parent | 2b80d7feafa5aec93988ca6014d77ac8945161f3 (diff) | |
download | bcm5719-llvm-c61ee1bd04122d1ab92493d478745b7ccba2364f.tar.gz bcm5719-llvm-c61ee1bd04122d1ab92493d478745b7ccba2364f.zip |
Set stdout/stdin to binary mode on Windows
Summary:
A file opened in text mode on Windows will have `\n` automatically changed to `13,10` while Darwin and Linux leave it as `10`.
Set the file to binary mode to avoid this automatic conversion so that Darwin, Linux and Windows have equivalent treatment of `\r`.
Reviewers: clayborg, xiaobai
Reviewed By: clayborg
Subscribers: emaste, ki.stfu, mgorny, eraman, JDevlieghere, mgrang
Differential Revision: https://reviews.llvm.org/D52672
llvm-svn: 346174
Diffstat (limited to 'llvm/tools/llvm-readobj/ELFDumper.cpp')
0 files changed, 0 insertions, 0 deletions