[GRASS-dev] Re: [GRASS GIS] #1330: wxGUI: "UnicodeEncodeError: 'ascii' codec can't encode characters" in pl_PL.UTF-8

Tomas_IV brunclik at atlas.cz
Sun Jun 19 18:29:33 EDT 2011

The problem to save workspace file is the same in GRASS 6.4.1, 
When grass64 or grass70 started with LANG=C, no errors. WAIT: after that,
trying it again with my normal LANG=cs_CZ.utf8 setting (starting with just
grass64 or grass70 commad), no error anymore! Seems like by temporary using
LANG=C, something "initilalized" properly, and the problem is gone. I will
try to reproduce that on my other machine and also look, if the "fix"
persists after reboot (tomorow).
Below is copy of text of error message window popping up after the first
attempt to save the workspace in 6.4.1. In GRASS 7.0 similar error message
appeared in the terminal. I also observed similar error in 7.0 when trying
to add an action in WxGui modeller (but not in 6.4.1).
Might be also of interest: 
I'm running 64bit Debian wheezy based Linux Mint.
GRASS 6.4.1 comes from debian binary package.
GRASS 7.0 was compiled from svn few days ago (ver. 7.0.svn46654).

*** the error message: ****
Zápis aktuálního nastavení do souboru pracovní oblasti selhalo.

Důvod: 'ascii' codec can't encode character u'\u016f' in position 77:
ordinal not in range(128)

Traceback (most recent call last):
  File "/usr/lib/grass64/etc/wxpython/wxgui.py", line 844, in
    workspace.WriteWorkspaceFile(lmgr = self, file = tmpfile)
  File "/usr/lib/grass64/etc/wxpython/gui_modules/workspace.py", line 734,
in __init__
    self.__writeLayer(mapTree, item)
  File "/usr/lib/grass64/etc/wxpython/gui_modules/workspace.py", line 781,
in __writeLayer
    (' ' * self.indent, type, name, checked, opacity));
UnicodeEncodeError: 'ascii' codec can't encode character u'\u016f' in
position 77: ordinal not in range(128)

View this message in context: http://osgeo-org.1803224.n2.nabble.com/GRASS-GIS-1330-wxGUI-UnicodeEncodeError-ascii-codec-can-t-encode-characters-in-pl-PL-UTF-8-tp6189279p6494039.html
Sent from the Grass - Dev mailing list archive at Nabble.com.

More information about the grass-dev mailing list