Browse Source

Windows: open files in binary mode

v0.7.4-release
Bert Belder 14 years ago
committed by Ryan Dahl
parent
commit
6329633a3e
  1. 5
      src/node_file.cc

5
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

Loading…
Cancel
Save