Re: [racket-users] Converting Windows line-endings for arbitrary ports

2018-08-16 Thread Greg Hendershott
Could you use `read-line`, supplying 'any for the optional `mode` argument? https://docs.racket-lang.org/reference/Byte_and_String_Input.html#(def._((quote._~23~25kernel)._read-line)) If reading in line-sized chunks would be awkward for your existing code: I suppose you add a second pipe

[racket-users] Converting Windows line-endings for arbitrary ports

2018-08-16 Thread Philip McGrath
I would like to apply the same line-ending conversion that open-input-file with a #:mode of 'text does on Windows to arbitrary input ports, like Racket-level pipes (in the sense of make-pipe). Specifically, I have an external program that I invoke with system* which reads from and writes to