projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa95e57
)
Windows: open files in binary mode
author
Bert Belder
<bertbelder@gmail.com>
Fri, 4 Feb 2011 22:20:24 +0000
(23:20 +0100)
committer
Ryan Dahl
<ry@tinyclouds.org>
Fri, 4 Feb 2011 22:43:41 +0000
(14:43 -0800)
src/node_file.cc
patch
|
blob
|
history
diff --git
a/src/node_file.cc
b/src/node_file.cc
index
5cc1f22
..
e85ccc7
100644
(file)
--- a/
src/node_file.cc
+++ b/
src/node_file.cc
@@
-870,6
+870,11
@@
void InitFs(Handle<Object> target) {
stats_constructor_template->GetFunction());
StatWatcher::Initialize(target);
File::Initialize(target);
+
+#ifdef __MINGW32__
+ // Open files in binary mode by default
+ _fmode = _O_BINARY;
+#endif
}
} // end namespace node