haskell / process

Library for dealing with system processes
http://hackage.haskell.org/package/process
Other
87 stars 82 forks source link

winio: match mio in setting default encoding for pipes instead #248

Closed Mistuke closed 2 years ago

Mistuke commented 2 years ago

This sets the default locale to be the current locale to match what the previous I/O manager was doing.

For WINIO the locale doesn't matter as all data is binary and we re-encode internally, however the locale seems to unexpectedly influence the line break detection in GHC.

As such we set the locale so it uses \r\n instead of \n.