> From: Yao Qi <yao@codesourcery.com> > Date: Mon, 29 Jul 2013 16:45:46 +0800 > > + setmode (fileno (stdin), O_BINARY); > + setmode (fileno (stdout), O_BINARY); > + setmode (fileno (stderr), O_BINARY); Do you really need all 3 of the standard handles in binary mode? I thought the problem was only with output?