[GRASS-dev] [GRASS GIS] #1727: v.in.lines not work on Window 7 64 bit

#1727: v.in.lines not work on Window 7 64 bit
--------------------------+-------------------------------------------------
  Reporter: antonioall | Owner: grass-dev@…
      Type: defect | Status: reopened
  Priority: critical | Milestone: 6.4.3
Component: Vector | Version: svn-trunk
Resolution: | Keywords: v.in.lines, g.tempfile
  Platform: MSWindows 7 | Cpu: x86-64
--------------------------+-------------------------------------------------

Comment(by hamish):

re. tcl/tk gui removing C:\ from GISDBASE,

Hamish wrote:
> looking into why it isn't like {|^GISDBASE: \(.*\)$} already with
> 'svn blame', looks like r45817 introduced it. Maris, do you remember
> what the problem is that was fixing, so we can avoid reintroducing it?

?

re. patch for scripts within a script not working:
> any comments before committing it?

last chance..

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1727#comment:20&gt;
GRASS GIS <http://grass.osgeo.org>

#1727: v.in.lines not work on Window 7 64 bit
--------------------------+-------------------------------------------------
  Reporter: antonioall | Owner: grass-dev@…
      Type: defect | Status: reopened
  Priority: critical | Milestone: 6.4.3
Component: Vector | Version: svn-trunk
Resolution: | Keywords: v.in.lines, g.tempfile
  Platform: MSWindows 7 | Cpu: x86-64
--------------------------+-------------------------------------------------

Comment(by hamish):

Replying to [comment:17 hamish]:
> it's the `GRASS GIS 6.x Old TclTk GUI` startup menu item which is eating
the C: part of GISDBASE.
>
> specifically this line in lib/init/gis_set.tcl:
  {{{
  if { [regexp -- {^GISDBASE.*:(.*)$} $thisline dummy env_database] } {
      set database [string trim $env_database]
  }
  }}}
>
> looking into why it isn't like `{|^GISDBASE: \(.*\)$}` already with
> 'svn blame', looks like r45817 introduced it. Maris, do you remember
> what the problem is that was fixing, so we can avoid reintroducing it?

it was a work-around for #1340, which was fixed a long time ago.

partial revert of r45817 done in devbr6 with r56071.

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1727#comment:21&gt;
GRASS GIS <http://grass.osgeo.org>

#1727: v.in.lines not work on Window 7 64 bit
--------------------------+-------------------------------------------------
  Reporter: antonioall | Owner: grass-dev@…
      Type: defect | Status: reopened
  Priority: critical | Milestone: 6.4.3
Component: Vector | Version: svn-trunk
Resolution: | Keywords: v.in.lines, g.tempfile
  Platform: MSWindows 7 | Cpu: x86-64
--------------------------+-------------------------------------------------

Comment(by hamish):

* script-called-from-script (adding \scripts to %PATH%) done & tested in
devbr6 r56092 (cmd.exe and tcl/tk gui startups) and backported to relbr64
in r56104 (still to be tested there).

  * tcl/tk gui eating C:\ from GISDBASE done in grassrc6 in r56071 & tested
for devbr6, backported to relbr64 in r56105 (still to be tested there).

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1727#comment:22&gt;
GRASS GIS <http://grass.osgeo.org>

#1727: v.in.lines not work on Window 7 64 bit
--------------------------+-------------------------------------------------
  Reporter: antonioall | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: critical | Milestone: 6.4.3
Component: Vector | Version: svn-trunk
Resolution: fixed | Keywords: v.in.lines, g.tempfile
  Platform: MSWindows 7 | Cpu: x86-64
--------------------------+-------------------------------------------------
Changes (by hamish):

  * status: reopened => closed
  * resolution: => fixed

Comment:

ok, now fixed & tested in relbr64:

  * script-called-from-script in cmd.exe and tcl/tk wingrass startups
  * .bat wrappers for shell scripts now have DOS newlines
  * tcl/tk eating C:\ from GISDBASE in grassrc6

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1727#comment:23&gt;
GRASS GIS <http://grass.osgeo.org>