Opened 9 years ago

Closed 9 years ago

#1340 closed defect (fixed)

wxGUI uses improper .grassrc syntax and may cause .grassrc file corruption

Reported by: marisn Owned by: martinl
Priority: blocker Milestone: 6.4.1
Component: wxGUI Version: svn-releasebranch64
Keywords: g.gisenv Cc: grass-dev@…
CPU: Unspecified Platform: Unspecified

Description

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!

Change History (4)

comment:1 Changed 9 years ago by martinl

Cc: grass-dev@… added
Keywords: g.gisenv added
Owner: changed from grass-dev@… to martinl
Status: newassigned

Please try out r45821

comment:2 in reply to:  1 ; Changed 9 years ago by martinl

Replying to martinl:

Please try out r45821

(devbr6)

comment:3 in reply to:  2 Changed 9 years ago by martinl

Replying to martinl:

Replying to martinl:

Please try out r45821

(devbr6)

Backported to relbr64 in r45829.

comment:4 Changed 9 years ago by martinl

Resolution: fixed
Status: assignedclosed

Closing the ticket. Please feel free to re-open if needed.

Note: See TracTickets for help on using tickets.