Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgor Duda <deo@logos-m.ru>2001-06-12 15:31:05 +0400
committerEgor Duda <deo@logos-m.ru>2001-06-12 15:31:05 +0400
commit4c15b7aba0e430aaa8e573a4b68568177787f5d2 (patch)
tree1b130c7c1aa1160edbe7bfd3a5720f7f76cac039 /winsup/cygwin/fork.cc
parent25842b68c79e1ab640b133db6520a8c0a2a458e8 (diff)
* environ.cc (set_file_api_mode): New function. Move setting
of file APIs mode (OEM/ANSI) here. (codepage_init): From here. * winsup.h (set_file_api_mode): Declare it. * fork.cc (fork_child): Set file APIs mode in forkee.
Diffstat (limited to 'winsup/cygwin/fork.cc')
-rw-r--r--winsup/cygwin/fork.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/fork.cc b/winsup/cygwin/fork.cc
index 42ce8ff71..651d935a3 100644
--- a/winsup/cygwin/fork.cc
+++ b/winsup/cygwin/fork.cc
@@ -271,6 +271,8 @@ fork_child (HANDLE& hParent, dll *&first_dll, bool& load_dlls)
((DWORD *)child_proc_info->stackbottom)[-15] = (DWORD)0;
}
+ set_file_api_mode (current_codepage);
+
MALLOC_CHECK;
pinfo_fixup_after_fork ();