Details Ticket 1561


Comment | Reply | Take | Open


Serial Number 1561
Subject tcl command error in tcltkgrass startup
Area bug
Queue grass
Requestors ddgray@armadce.demon.co.uk
Owner none
Status resolved
Last User Contact Mon Feb 5 21:56:59 2007 (2 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Mon Feb 5 21:56:59 2007 (2 yr ago)
Created Sat Feb 1 00:52:49 2003 (6 yr ago)

Transaction History Ticket 1561


Sat, Feb 1 2003 00:52:49    Request created by guest  
Subject: tcl command error in tcltkgrass startup

Platform: GNU/Linux/i386
grass obtained from: CVS
grass binary for platform: Compiled from Sources
GRASS Version: 5.0.2-cvs 20030131

Attempting to start Tcltkgrass:

GRASS:/arc/ddgray/cvs/main/grass > tcltkgrass&
[1] 16133
GRASS:/arc/ddgray/cvs/main/grass > bad switch "-dictionary": must be -ascii,
-integer, -real, -increasing -decreasing, or -command
    while executing
"lsort -dictionary [split [read $fd] \n]"
    invoked from within
"foreach line [lsort -dictionary [split [read $fd] \n]]..."
    (procedure "set_list" line 25)
    invoked from within
"set_list etc ellipse.table 1 "\ \t""
    invoked from within
"set spheroids [set_list etc ellipse.table 1 "\ \t"]..."
    (file "/opt/grass5/tcltkgrass/main/gui.tcl" line 1776)
    invoked from within
"source $env(TCLTKGRASSBASE)/main/gui.tcl"
    invoked from within
"if [catch {source $env(TCLTKGRASSBASE)/main/gui.tcl}] {
    set env(TCLTKGRASSBASE) $env(GISBASE)/tcltkgrass
    source $env(TCLTKGRASSBASE)/main/gui. ..."
    (file "/opt/grass5/bin/tcltkgrass" line 26)

+++++++++++++++++++++++++++++++++++++++++++++++++

All home directory rc files had been cleared.

Problem occurred with 3 separate Tcl/Tk installations, most recent 8.3.3
(Mandrake 9.0)

I can't think of anything local that might be causing this. But I'm not
a Tcl expert.

DD Gray
Sat, Feb 1 2003 01:32:09    Mail sent by glynn.clements@virgin.net  
Return-Path <glynn.clements@virgin.net>
Delivered-To grass-bugs@lists.intevation.de
From Glynn Clements <glynn.clements@virgin.net>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
Message-ID <15931.5197.1221.584634@cerise.nosuchdomain.co.uk>
Date Sat, 1 Feb 2003 00:26:53 +0000
To Request Tracker <grass-bugs@intevation.de>
Cc grass5@grass.itc.it
Subject Re: [GRASS5] [bug #1561] (grass) tcl command error in tcltkgrass startup
In-Reply-To <20030131235249.E316413B25@lists.intevation.de>
References <20030131235249.E316413B25@lists.intevation.de>
X-Mailer VM 7.07 under 21.4 (patch 12) "Portable Code" XEmacs Lucid
X-Spam-Status No, hits=-3.5 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, SIGNATURE_SHORT_DENSE,SPAM_PHRASE_01_02 version=2.43
X-Spam-Level
Request Tracker wrote:

> this bug's URL: http://intevation.de/rt/webrt?serial_num=1561
> -------------------------------------------------------------------------
> 
> Subject: tcl command error in tcltkgrass startup
> 
> Platform: GNU/Linux/i386
> grass obtained from: CVS
> grass binary for platform: Compiled from Sources
> GRASS Version: 5.0.2-cvs 20030131
> 
> Attempting to start Tcltkgrass:
> 
> GRASS:/arc/ddgray/cvs/main/grass > tcltkgrass&
> [1] 16133
> GRASS:/arc/ddgray/cvs/main/grass > bad switch "-dictionary": must be -ascii,
-integer, -real, -increasing -decreasing, or -command
>     while executing
> "lsort -dictionary [split [read $fd] \n]"
>     invoked from within
> "foreach line [lsort -dictionary [split [read $fd] \n]]..."
>     (procedure "set_list" line 25)
>     invoked from within
> "set_list etc ellipse.table 1 "\ \t""
>     invoked from within
> "set spheroids [set_list etc ellipse.table 1 "\ \t"]..."
>     (file "/opt/grass5/tcltkgrass/main/gui.tcl" line 1776)
>     invoked from within
> "source $env(TCLTKGRASSBASE)/main/gui.tcl"
>     invoked from within
> "if [catch {source $env(TCLTKGRASSBASE)/main/gui.tcl}] {
>     set env(TCLTKGRASSBASE) $env(GISBASE)/tcltkgrass
>     source $env(TCLTKGRASSBASE)/main/gui. ..."
>     (file "/opt/grass5/bin/tcltkgrass" line 26)
> 
> +++++++++++++++++++++++++++++++++++++++++++++++++
> 
> All home directory rc files had been cleared.
> 
> Problem occurred with 3 separate Tcl/Tk installations, most recent 8.3.3
> (Mandrake 9.0)
> 
> I can't think of anything local that might be causing this. But I'm not
> a Tcl expert.

It appears that the -dictionary switch was added in Tcl 8.0. It is a
case-insensitive version of -ascii.

For your immediate problem, I suggest changing -dictionary to -ascii
in /opt/grass5/tcltkgrass/main/gui.tcl (around line 1649).

For the developers: do we just change -dictionary to -ascii, or should
we try to use -dictionary if it is available (e.g. using "catch" to
fall-back to -ascii)?

-- 
Glynn Clements <glynn.clements@virgin.net>


Mon, Feb 5 2007 21:57:00    Status changed to resolved by mneteler  
Mon, Feb 5 2007 21:56:59    Mail sent by mneteler  
I assume that the problem is fixed - closing.

Markus
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request