On 02/13/2017 12:20 PM, Eric Blake wrote: > undossify_input causes more problems than it > solves. We should trust fopen("r") to do the right thing, rather than > reinventing it ourselves. Yes, that makes sense. Attached is a proposed patch to implement this. It assumes the patch you already submitted for Bug#25707. This patch keeps the -U option, for MS-Windows users who want to override fopen "-r"'s choice of binary vs text I/O. Perhaps that's too conservative? It would be easy to turn -U into a no-op too.