Opened 14 years ago

Closed 14 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 by martinl, 14 years ago

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

Please try out r45821

in reply to:  1 ; comment:2 by martinl, 14 years ago

Replying to martinl:

Please try out r45821

(devbr6)

in reply to:  2 comment:3 by martinl, 14 years ago

Replying to martinl:

Replying to martinl:

Please try out r45821

(devbr6)

Backported to relbr64 in r45829.

comment:4 by martinl, 14 years ago

Resolution: fixed
Status: assignedclosed

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

Note: See TracTickets for help on using tickets.