Skip to content

Conversation

Mistuke
Copy link
Contributor

@Mistuke Mistuke commented May 29, 2022

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.

@Mistuke Mistuke force-pushed the wip/change-pipes-to-use-default-encoding branch from bde9d70 to 1148660 Compare May 29, 2022 13:56
@snoyberg snoyberg merged commit d7bafbb into haskell:master May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants