On Mon, Jun 22, 2009 at 10:43:13AM +0300, Efraim Yawitz wrote: > > src\libs\libgroff\tmpfile.cpp:179: > > > > FILE *fp = fdopen(fd, FOPEN_RWB); // many callers of xtmpfile use binary > > I/O > > > > and this already says what the mode is, i.e. "w+", which should be > perfectly legal.
Actually, on Windows, that's "wb+". I have a suspicion that using fdopen(3) with the "b" flag but not opening fd using O_BINARY could be the cause of the problem; that would need to be fixed in tmpname.cpp. Seeing as I don't have a Windows machine, though, I cannot test this. -- brian m. carlson / brian with sandals: Houston, Texas, US +1 713 440 7475 | http://crustytoothpaste.ath.cx/~bmc | My opinion only OpenPGP: RSA v4 4096b 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
signature.asc
Description: Digital signature