diff options
author | Brad King <brad.king@kitware.com> | 2017-06-13 20:08:12 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-06-14 16:46:03 (GMT) |
commit | 871adefce97246ec42a157f62e39855b434c523d (patch) | |
tree | 9727162d4f41594834589c16914653649be393a7 /Modules | |
parent | d025faf436c86ee9cc033fbb324a9bc2c18757fa (diff) | |
download | CMake-871adefce97246ec42a157f62e39855b434c523d.zip CMake-871adefce97246ec42a157f62e39855b434c523d.tar.gz CMake-871adefce97246ec42a157f62e39855b434c523d.tar.bz2 |
cmake: Fix default file translate mode when using libuv
On Windows, libuv's one-time initialization changes the C runtime
library's `_fmode` setting to `_O_BINARY`, thus causing files to open
as binary after that instead of the default `_O_TEXT` mode. See
upstream libuv issue 840. Work around the problem by performing libuv
initialization early and then restoring `_fmode`.
In particular, this currently affects server mode. Without this fix,
the `_fmode` setting changes when the server mode initializes libuv.
Fixes: #16962
Diffstat (limited to 'Modules')
0 files changed, 0 insertions, 0 deletions