[GRASS-dev] [bug #5094] (grass) r.support from the GUI is broken

Hamish hamish_nospam at yahoo.com
Wed Sep 27 08:38:28 EDT 2006


> this bug's URL: http://intevation.de/rt/webrt?serial_num=5094

> If you launch r.support (r.support.sh actually) from the gis.m menu,
> you get to pick a map and then launch r.support in an xterm. As soon
> as you enter "y" or "n" at the prompt the xterm disappears. Replace
> "execute r.support.sh" with "term r.support" on line ~421 of menu.tcl
> for comparison with what should happen.


After some debugging:

if you answer "Y", it breaks in r.support/front/run.c run_etc_support():
    G_snprintf(buf, sizeof(buf), "%s/etc/support/%s '%s'",
             G_gisbase(), pgm, rast);


if you answer "N", it breaks in r.support/front/check.c check_stats()
    G_snprintf(question, sizeof(question), _("Update the statistics "
             "(histogram, range) for [%s]? "), name);


??


For now I'm setting this to "term" mode in menu.tcl in the 6.2 release
branch while we work out a fix in HEAD.


Hamish




More information about the grass-dev mailing list