Windows: open files in binary mode
This commit is contained in:
parent
aa95e5708f
commit
6329633a3e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user