[Qgis-developer] fopen using binary mode
wonder.sk at gmail.com
Sat Jan 26 11:11:57 EST 2008
Doing svn log discovers that this has been added about 2 years ago by Radim:
So I guess this had some impact on GRASS but since then windows port
of GRASS has come a long way so it should be safe to remove...
On Jan 14, 2008 1:58 PM, Barry Rowlingson <b.rowlingson at lancaster.ac.uk> wrote:
> I've discovered where my problem with Qgis-Python-R is coming from.
> In main.cpp, Qgis sets the default mode for fopen in Windows to binary.
> This is inherited down to R which calls fopen(file,"r") to read one of
> its config files, which has Windows CR-LF endings. It fails to expect
> this, and falls over while parsing it.
> I don't know why Qgis sets this, since it violates the principle of
> least surprise. Does anyone know why? It could surprise plugin authors too.
> I'm happy to go through the source and check every fopen call...
> Qgis-developer mailing list
> Qgis-developer at lists.qgis.org
More information about the Qgis-developer