[GRASS-dev] unstable GRASS_MESSAGE_FORMAT

Glynn Clements glynn at gclements.plus.com
Tue Mar 20 10:40:23 EDT 2007


Hamish wrote:

> 6.3 v.to.rast GUI started from command line, spearfish.
> 
> I've noticed for months that GRASS_MESSAGE_FORMAT isn't stable.
> Sometimes I see the "i" in the cartoon bubble icon for G_message(),
> sometimes I see both that and the GRASS_INFO_MESSAGE($pid,n): text. Now
> I see both in the same output. Repeated runs randomly use one format or
> the other, or bits of both.
> 
> What gives? Similar weirdness as with G_debug() some months ago being
> used before the global var was initialized?
> 
> 
> G_info_format() seems to remain "1" throughout.
> The print_sentence() FILE* arg seems to be stable as well.
> 
> so problem is with Tcl handling of stderr, not in lib/gis/error.c?

Yes.

I don't know if this is related, but the fact that Gronsole::readout
uses "read" rather than "gets" means that there will be problems if
the output includes partial lines.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list