[GRASS-dev] winGRASS: enabling non-english languages?
Glynn Clements
glynn at gclements.plus.com
Thu Jan 14 01:41:06 EST 2010
Markus Neteler wrote:
> > Because the path lacks the .exe suffix, the access() call fails.
> > G_spawn() itself doesn't need the .exe suffix, but it never gets that
> > far.
>
> Would this be hell?
>
> #ifndef __MINGW32__
> sprintf(lister, "%s/etc/lister/%s", G_gisbase(),
> #else
> sprintf(lister, "%s/etc/lister.exe/%s", G_gisbase(),
> #endif
The .exe goes on the end:
#ifndef __MINGW32__
sprintf(lister, "%s/etc/lister/%s", G_gisbase(),
#else
sprintf(lister, "%s/etc/lister/%s.exe", G_gisbase(),
#endif
Except ... this requires that the lister is an executable; there's no
fundamental reason why it couldn't be a script, other than the
access() check (well: that, and the fact that G_spawn() etc don't use
the shell currently).
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list