Probably the extra case should be #ifdef __MINGW32__, to make sure it has no effect on non-Windows users. Thoughts? > I think the solution is to attach to the output port a transcoder that > leaves the single newline character at end of line intact. But I > couldn't find any example or documentation that would show me how to > construct a transcoder for an encoding. make-transcoder wants a > codec, but I see no documentation how to make one. IOW, how do I take > a string like "iso-8859-15" and make a codec out of it? I trust that > you will know, though ;-) Ah ah, this is an R6RS API that’s not actually fully implemented. So, there are predefined codecs, like ‘latin-1-codec’. This part is implemented, in terms of ‘set-port-encoding!’. However the CR/LF transcoders are not implemented. Ludo’.