Commit 03efcb5
committed
erts: Only translate \r\n on character devices in fd ports
If the input handle is a pipe or something different we don't want to
do any translation at all, but if it is a character device we translate
\r\n to \n so that it mimics how terminals on Linux works a little bit
better. As open_port fd is not used anymore for the normal erlang terminal
this change only effects thirdparty usage which usually is from pipes
that do not want any translation to happen.
Closes #102581 parent c388a2d commit 03efcb5
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2179 | 2179 | | |
2180 | 2180 | | |
2181 | 2181 | | |
2182 | | - | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
2183 | 2187 | | |
2184 | 2188 | | |
2185 | 2189 | | |
| |||
0 commit comments