Opened 13 years ago

Last modified 8 years ago

#1291 new defect

Profile tool fails to close if legend text contains non-latin letters

Reported by: marisn Owned by: grass-dev@…
Priority: normal Milestone: 6.4.6
Component: wxGUI Version: svn-releasebranch64
Keywords: Cc:
CPU: Unspecified Platform: All

Description

Steps to reproduce:

  • Start wx profile tool
  • Profile options -> Profile plot settings
  • Change "Transsect segment marker" legend text to "āšņļ"
  • As there is no OK button (WTF? Designed for Mac users?!?), click "Save" to close this window
  • KaBOOM!

WinGRASS-6.4.SVN-r45518-1 on Windows Vista

Traceback (most recent call last):
  File "c:/osgeo4w/usr/src/grass64_release/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/profile.py", line 1440, in
OnSave
  File "c:/osgeo4w/usr/src/grass64_release/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/preferences.py", line 801,
in SaveToFile
gui_modules.gcmd
.
GException
:
Writing settings to file <C:\Users\tests\.grasswx6> failed.
Details: 'ascii' codec can't encode character u'\u0113' in
position 7: ordinal not in range(128)

Change History (3)

comment:1 by hellik, 13 years ago

Keywords: wingrass added

comment:2 by marisn, 13 years ago

Keywords: wingrass removed
Platform: MSWindows VistaAll

6.4.1 r45616 Gentoo ~AMD64

Traceback (most recent call last):
  File "/home/maris/soft/grass_64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/gui_modules/profile.py", line 1440, in
OnSave

file = UserSettings.SaveToFile(fileSettings)
  File "/home/maris/soft/grass_64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/gui_modules/preferences.py", line 801, in
SaveToFile

'detail' : e })
gui_modules.gcmd
.
GException
:
Writing settings to file </home/maris/.grasswx6> failed.
Details: 'ascii' codec can't encode characters in position
7-11: ordinal not in range(128)

comment:3 by neteler, 8 years ago

Milestone: 6.4.16.4.6
Note: See TracTickets for help on using tickets.