[GRASS-dev] tmpfile() -> G_asprintf fails on Win/MinGW

Radim Blazek radim.blazek at gmail.com
Fri Oct 6 14:38:07 EDT 2006


Thanks,
unfortunately I found that it would not work when no mapset is open
(read only access) so I changed it to use Windows native functions to get temp
file. Another patch  is attached.

Radim

On 10/6/06, Markus Neteler <neteler at itc.it> wrote:
> On Fri, Oct 06, 2006 at 05:35:29PM +0200, Radim Blazek wrote:
> > Hi,
> > attached is critical bugfix for G_asprintf(). tmpfile() fails on
> > Windows/MinGW
> > if user des not have enough permissions on the drive (top dir) where he is
> > currently working.
> > Please apply to both HEAD and 6.2 release.
>
> Patch applied to both repositories (I have changed the C++ style comment, though).
>
> Markus
>
> > BTW, I dont think G_asprintf should be used in this cases:
> >  G_asprintf(&datumlongname, "unknown");
> >  G_asprintf(&ellps, "unnamed");
> >  G_asprintf( &pszDatumName, pszDatumNameConst );
> >
> > Radim
>
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass-dev
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asprintf.c.patch2
Type: application/octet-stream
Size: 1225 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20061006/b5daef77/asprintf.c.obj


More information about the grass-dev mailing list