* 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:
@@ -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 ();
|
||||
|
Reference in New Issue
Block a user