[Gdal-dev] apps / MinGW

Radim Blazek radim.blazek at gmail.com
Wed Apr 12 07:29:10 EDT 2006


Hi,
I found that GDAL applications compiled with MinGW do not
work correctly because they open binary files in text mode
and convert CR/LF.

It can be fixed by
#ifdef WIN32
#include <stdlib.h> /*  _fmode */
#include <fcntl.h> /*  _O_BINARY */
#undef _fmode
int _fmode = _O_BINARY;
#endif

Can I add this to the applications in gda/apps?

See also http://grass.itc.it/pipermail/grass5/2006-February/021066.html

Radim




More information about the Gdal-dev mailing list