Read in text mode in a needed place only

Converting CR+LF to LF in blocking_read() which is a underlying read
function, may affect to the functions which do not perform line-based
operation.

    modified:   funcs.c
    modified:   main.c
    modified:   misc.c
    modified:   os2.c
    modified:   shf.c
This commit is contained in:
KO Myung-Hun
2016-12-17 17:04:37 +09:00
parent 18ff277047
commit 20dbf6b45b
5 changed files with 31 additions and 11 deletions

2
main.c
View File

@ -1467,7 +1467,7 @@ openpipe(int *pv)
if (pv[1] != lpv[1])
close(lpv[1]);
#ifdef __OS2__
setmode(pv[0], O_TEXT);
setmode(pv[0], O_BINARY);
setmode(pv[1], O_BINARY);
#endif
}