[GRASS-dev] [GRASS GIS] #2614: wxgui Output save fails with UnicodeEncodeError

#2614: wxgui Output save fails with UnicodeEncodeError
-------------------------+--------------------------------------------------
Reporter: marisn | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 7.0.1
Component: wxGUI | Version: 7.0.0
Keywords: | Platform: MSWindows Vista
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
Steps to reproduce:
  * in Command console tab click on "save button"
  * choose any file where to save output
  * observe an error printed in command console:
{{{
Traceback (most recent call last):
   File "C:\Program Files\GRASS GIS
7.0.0\gui\wxpython\gui_core\goutput.py", line 387, in
OnOutputSave

output.write(text)
UnicodeEncodeError
:
'ascii' codec can't encode character u'\u012b' in position
273: ordinal not in range(128)
}}}
Priority is Major, as it creates 0 byte size files. I lost another error
message due to not checking file contents after save :frowning:

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2614&gt;
GRASS GIS <http://grass.osgeo.org>

#2614: wxgui Output save fails with UnicodeEncodeError
-------------------------+--------------------------------------------------
Reporter: marisn | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 7.0.1
Component: wxGUI | Version: 7.0.0
Keywords: | Platform: MSWindows Vista
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by annakrat):

Could you try r64809 in trunk?

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

#2614: wxgui Output save fails with UnicodeEncodeError
-------------------------+--------------------------------------------------
Reporter: marisn | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 7.0.1
Component: wxGUI | Version: 7.0.0
Keywords: | Platform: MSWindows Vista
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by marisn):

Replying to [comment:1 annakrat]:
> Could you try r64809 in trunk?
Yes, now it works just fine on my Vista VM and no bad side effects on
GNU/Linux. Needs backporting.

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

#2614: wxgui Output save fails with UnicodeEncodeError
------------------------------+---------------------------------------------
  Reporter: marisn | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: major | Milestone: 7.0.1
Component: wxGUI | Version: 7.0.0
Resolution: fixed | Keywords:
  Platform: MSWindows Vista | Cpu: Unspecified
------------------------------+---------------------------------------------
Changes (by annakrat):

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

Comment:

Replying to [comment:2 marisn]:
> Replying to [comment:1 annakrat]:
> > Could you try r64809 in trunk?
> Yes, now it works just fine on my Vista VM and no bad side effects on
GNU/Linux. Needs backporting.

Done in r64817.

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