Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use transcoder to do textmode crlf translation on Windows.
MRI is able to avoid this overhead by using O_TEXT at the file descriptor level, which automatically translates \r\n to/from \n on reads and writes. Since we don't have control over the underlying fd/handle across the board on Windows, we must use universal newline translation in the transcoder subsystem to emulate O_TEXT. In the future we will probably want to explore crlf solutions that have less overhead.