[GRASS-dev] Re: [GRASS GIS] #127: WinGRASS Tcl/Tk GUI - Text formatting error in Output window

GRASS GIS trac at osgeo.org
Wed Apr 16 12:46:05 EDT 2008


#127: WinGRASS Tcl/Tk GUI - Text formatting error in Output window
-------------------------+--------------------------------------------------
  Reporter:  4everskiff  |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect      |      Status:  new                      
  Priority:  minor       |   Milestone:  6.3.0                    
 Component:  Tcl         |     Version:  6.3.0 RCs                
Resolution:              |    Keywords:  Text output, winGRASS    
-------------------------+--------------------------------------------------
Comment (by pkelly):

 Does this really apply to every command? Can you give another example
 other than "g.region -p"?

 Also, how was the location created? Does the same behaviour occur in a
 location that wasn't created using WinGRASS (e.g. does it happen with
 spearfish?)

 Potential technical explanation:
 I suspect it might just be another example of G_getl() needing to be
 replaced by G_getl2() when reading the projections file and creating the
 PROJ_INFO - the newline character is stripped off but the carriage return
 isn't.

 IMHO the best solution to this is to audit all occurences of G_getl() and
 replace them with G_getl2() if there are no potential problems, then
 replace G_getl() itself with a wrapper to G_getl2().

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/127#comment:1>
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/


More information about the grass-dev mailing list