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.
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
.