* 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.
This commit is contained in:
Egor Duda
2001-06-12 11:31:05 +00:00
parent 25842b68c7
commit 4c15b7aba0
4 changed files with 29 additions and 4 deletions

View File

@@ -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 ();