diff options
author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2009-03-16 17:08:45 +0000 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2009-03-17 19:10:51 -0700 |
commit | 7a6cf8153799563464d6f1761e55352c327b4122 (patch) | |
tree | d0f0c327029d770d1b10efc7a6c93080ed7d6844 /src/unix/map.c | |
parent | 0f39781c25a06c1d38877adef4ff5a6a5f67f1ca (diff) | |
download | libgit2-7a6cf8153799563464d6f1761e55352c327b4122.tar.gz |
win32: Open or create files in binary mode
On windows, unless we use the O_BINARY flag in the open()
call, the file I/O routines will perform line ending
conversion (\r\n => \n on input, \n => \r\n on output).
In addition to the performance penalty, most files in the
object database are binary and will, therefore, become
corrupted by this conversion.
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'src/unix/map.c')
0 files changed, 0 insertions, 0 deletions