[Qgis-developer] GRASS raster provider

Jürgen E. Fischer jef at norbit.de
Fri Apr 29 02:45:41 EDT 2011


Hi Radim,

On Fri, 29. Apr 2011 at 07:27:37 +0200, Radim Blazek wrote:
> On Thu, Apr 28, 2011 at 10:39 PM, Jürgen E. <jef at norbit.de> wrote:
> > No magic, just #3766 / r15798. Problem was that stdin of QGIS (MSVC) was
> > passed to GRASS (mingw).
> 
> Thanks,
> G_getl2 was hanging up waiting for '\n' after '\r', right?

No, it was crashing.  I assume MSVC and MinGW are using different FILE
structures in their stdio - so passing stdin from MSVC to MinGW doesn't work.

If GRASS has a library function that does fdopen on 0, we could probably use
that and stick with G_getl2().  But I figured fgets() does the same thing here.


Jürgen

-- 
Jürgen E. Fischer         norBIT GmbH               Tel. +49-4931-918175-20
Dipl.-Inf. (FH)           Rheinstraße 13            Fax. +49-4931-918175-50
Software Engineer         D-26506 Norden               http://www.norbit.de

-- 
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502



More information about the Qgis-developer mailing list