[GRASS5] [bug #4110] (grass) v.digit: Could not set Tcl system encoding to

this bug's URL: http://intevation.de/rt/webrt?serial_num=4110
-------------------------------------------------------------------------

Subject: v.digit: Could not set Tcl system encoding to

Platform: GNU/Linux/x86
grass obtained from: CVS
grass binary for platform: Compiled from Sources
GRASS Version: 2006-02-20

When editing attributes in v.digit plenty of "Could not set Tcl system encoding to" are printed to stdout (3 per 1 edit action). An error? Warning? Why doesn't it say what encoding it couldn't set to, actually?

v.digit map=huba -n
D0/0: Name = cat
D0/0: Name = buba
D0/0: Name = _grass_internal_database_encoding
D0/0: Name = _grass_internal_database_encoding
Could not set Tcl system encoding to
D0/0: Name = _grass_internal_database_encoding
Could not set Tcl system encoding to
D0/0: Name = _grass_internal_database_encoding
Could not set Tcl system encoding to

I have my GRASS_DB_ENCODING set:

GRASS 6.1.cvs (caves_utm33):~ > echo $GRASS_DB_ENCODING
utf-8

Maciek

P.S.

The new "Edit line/boundary" tool is excellent! Thanks to Ralf Gerlich and Markus Neteler!

Maciek

-------------------------------------------- Managed by Request Tracker

Request Tracker wrote:

this bug's URL: http://intevation.de/rt/webrt?serial_num=4110
-------------------------------------------------------------------------

Subject: v.digit: Could not set Tcl system encoding to

Platform: GNU/Linux/x86
grass obtained from: CVS
grass binary for platform: Compiled from Sources
GRASS Version: 2006-02-20

When editing attributes in v.digit plenty of "Could not set Tcl
system encoding to" are printed to stdout (3 per 1 edit action). An
error? Warning? Why doesn't it say what encoding it couldn't set to,
actually?

v.digit map=huba -n
D0/0: Name = cat
D0/0: Name = buba
D0/0: Name = _grass_internal_database_encoding
D0/0: Name = _grass_internal_database_encoding
Could not set Tcl system encoding to
D0/0: Name = _grass_internal_database_encoding
Could not set Tcl system encoding to
D0/0: Name = _grass_internal_database_encoding
Could not set Tcl system encoding to

The two points in the code (lib/form/form.c) which generate this error
read:

    if ( Tcl_SetSystemEncoding(interp, Cols[i].value) == TCL_ERROR ) {
      fprintf(stderr,
        "Could not set Tcl system encoding to %s\n", Cols[i].value);
    }
and:
          if ( Tcl_SetSystemEncoding(interp, encoding_val) == TCL_ERROR ) {
       fprintf(stderr,
      "Could not set Tcl system encoding to %s\n", encoding_val);
        }

IOW, the encoding name is an empty string.

--
Glynn Clements <glynn@gclements.plus.com>