> In short words, on mingw-gcc 4.9.0 the following code produces a text file with contents "a\r\nb\r\n", while > replacing open() + fdopen() with a single fopen() produces "a\nb\n". Any > ideas?
You have to add O_BINARY to open(). Regards Domani Hannes ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public