[GRASS-dev] Help -> "About GRASS" broken

Maris Nartiss maris.gis at gmail.com
Wed Sep 19 23:55:33 PDT 2012


Hello,
I changed code a bit to not fail so hard in r53238 (6.4) and r53239
(7). Added one extra string 'unknown'

Still sometimes it will report wrong data, as Python's
getdefaultlocale is broken (by design?). On my system it sometimes
returns ('lv_LV', 'ISO8859-13') (as somewhere ISO encoding is set to
be default for lv_LV), still my system doesn't support provided ISO
encoding and attempt to use it in i.e. setlocale would cause only a
failure.


Maris.

2012/9/20 Markus Neteler <neteler at osgeo.org>:
> Hi,
>
> in GRASS 6, I currently get in
>
> Help -> "About GRASS"
>
> Traceback (most recent call last):
>   File "/home/neteler/grass64/dist.x86_64-unknown-linux-
> gnu/etc/wxpython/lmgr/frame.py", line 741, in OnAboutGRASS
>
> win = AboutWindow(self)
>   File "/home/neteler/grass64/dist.x86_64-unknown-linux-
> gnu/etc/wxpython/gui_core/ghelp.py", line 483, in __init__
>
> lang = '.'.join(locale.getdefaultlocale())
> TypeError
> :
> sequence item 0: expected string, NoneType found
>
> Markus
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev


More information about the grass-dev mailing list