Opened 9 years ago
Closed 9 years ago
#2827 closed defect (fixed)
wxGUI: encoding error in error messages
Reported by: | mlennert | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.0.3 |
Component: | wxGUI | Version: | svn-releasebranch70 |
Keywords: | encoding | Cc: | |
CPU: | Unspecified | Platform: | Unspecified |
Description
In several modules, whenever I try to launch the module with missing parameters, I get an error message as such in the command console of the wxGUI, but no error message in the module output tab:
Traceback (most recent call last): File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64 -unknown-linux-gnu/gui/wxpython/gui_core/forms.py", line 696, in OnRun cmd = self.createCmd() File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64 -unknown-linux-gnu/gui/wxpython/gui_core/forms.py", line 791, in createCmd ignoreRequired = ignoreRequired) File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64 -unknown-linux-gnu/gui/wxpython/gui_core/forms.py", line 2344, in createCmd message = unicode(err), UnicodeDecodeError : 'ascii' codec can't decode byte 0xc3 in position 8: ordinal not in range(128)
Reproduced with trunk, grass70_release and grass 7.0.2 with locale fr_BE.utf8.
Change History (11)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
I assume there is no "evil" char in po file. This is just another "ups! I forgot to deal with incoming string encoding" type error in python code. Although I can not reproduce the issue, it can depend on 1) particular string; 2) locale; 3) return of python's getlocadedefaultencodingwhatinmostofcasesistotallywronganyway.
Moritz - please, provide exact command exposing the issue. Also take a look if it isn't a duplicate of #2800 #2727 #2617 #2390 #2120 #1856 #1672 #1488 or #1293
follow-up: 5 comment:4 by , 9 years ago
follow-up: 6 comment:5 by , 9 years ago
Replying to neteler:
Replying to annakrat:
Fixed in r67187, tested on linux only so far.
Now, when *starting* v.buffer it is ok but clicking on "Run" ("Exécuter"), even without anything set, still triggers it (Linux with Python: 2.7.10, wxPython: 3.0.2.0 ).
Fixed in r67205. But we need to test it on Windows as well.
comment:6 by , 9 years ago
Replying to annakrat:
Replying to neteler:
Replying to annakrat:
Fixed in r67187, tested on linux only so far.
Now, when *starting* v.buffer it is ok but clicking on "Run" ("Exécuter"), even without anything set, still triggers it (Linux with Python: 2.7.10, wxPython: 3.0.2.0 ).
Fixed in r67205. But we need to test it on Windows as well.
Yes, thanks, works for me on GNU/Linux. I don't have the opportunity to test on Windows at the moment.
comment:7 by , 9 years ago
comment:8 by , 9 years ago
OK, my mistake, r67262 should fix this correctly and it's tested on Windows. Moritz, could you go through the tickets related to this (suggested above), test and update which ones are to be closed?
follow-up: 10 comment:9 by , 9 years ago
Any plan for backport to relbr70? Regarding to milestone 7.0.3...
comment:10 by , 9 years ago
Replying to martinl:
Any plan for backport to relbr70? Regarding to milestone 7.0.3...
This should definitely be backported. It is very annoying and is still happening in release70.
See also the related Debian bug.
I just tried on Fedora 23:
.. looks initally ok here: g.gui starts, also d.rast from menu.
Launching v.buffer from menu generates the error (but the module GUI comes up behind the error msg window).
Could there be any "evil" char in locale/po/grassmods_fr.po?