this bug's URL: http://intevation.de/rt/webrt?serial_num=5488
-------------------------------------------------------------------------
Glynn Clements wrote on 02/08/2007 11:38 PM:
Markus Neteler wrote:
Roberto Flor and me have fixed the bug
"v.digit: Could not set Tcl system encoding"
http://intevation.de/rt/webrt?serial_num=4110Please test. I'll backport it to 6.2.x then.
Note: For mysterious Tcl (?) reasons I cannot set iso8859-1 and iso8859-2
but utf-8, iso8859-15, iso2210-jp, koi8-r, euc-jp etc work.
Maybe my installation...
I confirm. Same happens on my instalation. tcl/tk 8.4.12, Ubuntu Dapper
32bit.
So we are happy since most of the encodings now work.
Not having ISO-8859-1 working is a pretty major issue.
I am still not sure if it is a local problem or a general one or depends
on the tcltk version.
Can you provide more details, preferably including a recipe to
reproduce the issue using either spearfish or a new location?
Sure (eg Spearfish):
d.mon x0
v.digit -n newmap
# now go to "Settings" icon, "Table" tab, "Add column", add a column of
your choice, "Create table"
# close the "Settings" window
# digitize a line
# enter a value into the attribute popup form
# "submit button" (default is utf-8 which seems to work)
# change the encoding, click "submit button" again and voila' the error
appear in the terminal
Okay.I'm pretty sure that the problem is that lib/form/form.c doesn't call
Tcl_Main(), so the library path doesn't get set, so Tcl can't find its
.enc files.Realistically, if you are trying to use Tcl/Tk and your program
*doesn't* look very much like tkAppInit.c, all bets are off.Rather than trying to process the data from the form library in C,
form.c should just register the commands then do the rest in Tcl.
Since I know nothing about tcl, I'll leave that to the experts. AFAIK
form.c was
originally written by Radim.
Markus
--- Headers Follow ---
From neteler@itc.it Fri Feb 9 09:10:29 2007
Return-Path: <neteler@itc.it>
Delivered-To: grass-bugs@lists.intevation.de
Received: from kolab.intevation.de (salmakis.hq.intevation.de [192.168.11.9])
by lists.intevation.de (Postfix) with ESMTP id 9EABF1006CB
for <grass-bugs@lists.intevation.de>; Fri, 9 Feb 2007 09:10:29 +0100 (CET)
Received: from localhost (localhost.localdomain [127.0.0.1])
by kolab.intevation.de (Postfix) with ESMTP id 7A154109397
for <grass-bugs@lists.intevation.de>; Fri, 9 Feb 2007 09:10:29 +0100 (CET)
Received: from localhost (localhost.localdomain [127.0.0.1])
by kolab.intevation.de (Postfix) with ESMTP id 1F67D10AD0B
for <grass-bugs@lists.intevation.de>; Fri, 9 Feb 2007 09:10:29 +0100 (CET)
Received: from lancelot.itc.it (ns.itc.it [217.77.80.3])
by kolab.intevation.de (Postfix) with ESMTP id E7FC0109397
for <grass-bugs@intevation.de>; Fri, 9 Feb 2007 09:10:27 +0100 (CET)
Received: from lancelot (unknown [127.0.0.1])
by lancelot.itc.it (Symantec Mail Security) with ESMTP id 7F9E638C215
for <grass-bugs@intevation.de>; Fri, 9 Feb 2007 09:10:27 +0100 (CET)
X-AuditID: d94d5003-aed5bbb0000004c3-db-45cc2c73af88
Message-ID: <45CC2C73.5030206@itc.it>
Date: Fri, 09 Feb 2007 09:10:27 +0100
From: Markus Neteler <neteler@itc.it>
User-Agent: Thunderbird 1.5.0.9 (X11/20061206)
MIME-Version: 1.0
To: Glynn Clements <glynn@gclements.plus.com>
Cc: grass developers list <grass-dev@grass.itc.it>,
Request Tracker <grass-bugs@intevation.de>
Subject: Re: [GRASS-dev] v.digit: Could not set Tcl system encoding fixed
(bug #4110)
References: <45C9995E.7010700@itc.it> <45C9F585.30406@o2.pl> <45CAD4F8.5050400@itc.it> <17867.3200.384675.355130@cerise.gclements.plus.com> <45CB36F6.1070906@itc.it> <17867.42607.267308.193576@cerise.gclements.plus.com>
In-Reply-To: <17867.42607.267308.193576@cerise.gclements.plus.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 09 Feb 2007 08:10:27.0211 (UTC) FILETIME=[C1C84DB0:01C74C21]
X-Brightmail-Tracker: AAAAAA==
X-Virus-Scanned: by amavisd-new at intevation.de
X-Spam-Status: No, hits=-5 tagged_above=-999 required=3 tests=[BAYES_00=-5]
X-Spam-Level:
-------------------------------------------- Managed by Request Tracker