From 4c15b7aba0e430aaa8e573a4b68568177787f5d2 Mon Sep 17 00:00:00 2001 From: Egor Duda Date: Tue, 12 Jun 2001 11:31:05 +0000 Subject: * 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. --- winsup/cygwin/fork.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'winsup/cygwin/fork.cc') 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 (); -- cgit v1.2.3