Commit ID: 1005A3D34BA0D79DEF2
CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2017/12/22 16:37:14 UTC
Modified files:
bin/mksh : os2.c
Log message:
Set stdin to text mode before executing child processes
Normal OS/2 programs expect that standard IOs, especially stdin,
are opened in text mode at the startup. By the way, on OS/2 kLIBC
child processes inherit a translation mode of a parent process.
As a result, if stdin is set to binary mode in a parent process,
stdin of child processes is opened in binary mode as well at the
startup. In this case, some programs such as sed suffer from CR.
This is the regression fix of commit 20dbf6.
From: KO Myung-Hun <[email protected]>
To generate a diff of this changeset, execute the following commands:
cvs -R rdiff -kk -upr1.6 -r1.7 src/bin/mksh/os2.c