Cygwin: pty: Change the timing of set_locale() call again.
- After commit 095972ce5b
, charset
conversion in mintty is broken if charset is set to other than
UTF-8. This seems to be caused because mintty does not set locale
yet at fork() call. This patch changes the timing of set_locale()
call again to avoid this issue.
This commit is contained in:
committed by
Corinna Vinschen
parent
095972ce5b
commit
70d02aaca6
@@ -628,6 +628,18 @@ child_info_spawn::worker (const char *prog_arg, const char *const *argv,
|
||||
}
|
||||
}
|
||||
|
||||
if (!iscygwin ())
|
||||
{
|
||||
cfd.rewind ();
|
||||
while (cfd.next () >= 0)
|
||||
if (cfd->get_major () == DEV_PTYS_MAJOR)
|
||||
{
|
||||
fhandler_pty_slave *ptys =
|
||||
(fhandler_pty_slave *)(fhandler_base *) cfd;
|
||||
ptys->setup_locale ();
|
||||
}
|
||||
}
|
||||
|
||||
/* Set up needed handles for stdio */
|
||||
si.dwFlags = STARTF_USESTDHANDLES;
|
||||
si.hStdInput = handle ((in__stdin < 0 ? 0 : in__stdin), false,
|
||||
|
Reference in New Issue
Block a user