[GRASS-dev] [GRASS GIS] #1340: wxGUI uses improper .grassrc syntax and may cause .grassrc file corruption

GRASS GIS trac at osgeo.org
Thu Mar 31 08:34:44 EDT 2011


#1340: wxGUI uses improper .grassrc syntax and may cause .grassrc file corruption
-------------------------+--------------------------------------------------
 Reporter:  marisn       |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  blocker      |   Milestone:  6.4.1                    
Component:  wxGUI        |     Version:  svn-releasebranch64      
 Keywords:               |    Platform:  Unspecified              
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------
 For historical reasons init.sh and gis_set.tcl use following .grassrc
 syntax:
 {{{
 IDENTIFIER: STRING
 }}}
 For some strange reason wxGUI uses (note extra space after identifier):
 {{{
 IDENTIFIER : STRING
 }}}
 As init.sh and gis_set.tcl both expect no extra space after identifier,
 some of their regexp's doesn't work as expected leading to improper
 results.

 Steps to reproduce:
  * rm .grassrc6
  * start GRASS with -text or -tcltk
  * quit GRASS
  * start GRASS with -wxpython and choose different mapset
  * quit GRASS
  * inspect .grassrc6 file -> it contains TWO lines MAPSET!

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1340>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list