commit | 9c0f3f3279985b724c2f1358bb05cc2c795f2265 | [log] [tgz] |
---|---|---|
author | Bruce Cran <bcran@fusionio.com> | Mon Apr 28 15:54:43 2014 -0600 |
committer | Jens Axboe <axboe@fb.com> | Mon Apr 28 18:10:43 2014 -0600 |
tree | c77a057c752a936716b5690a3ab4f998fe4c2a14 | |
parent | 77731b29c35286a43ca6109ebf13389169ec20e9 [diff] |
Windows: always open files in binary mode On Windows, open() defaults to text mode, causing control characters to be interpreted. Avoid this by passing the _O_BINARY flag. Signed-off-by: Jens Axboe <axboe@fb.com>