[GRASS-dev] [GRASS GIS] #2617: wxgui Raster query redirect to console UnicodeDecodeError

GRASS GIS trac at osgeo.org
Sun Jun 7 13:09:33 PDT 2015


#2617: wxgui Raster query redirect to console UnicodeDecodeError
--------------------------+----------------------------------------------
  Reporter:  marisn       |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:  7.0.1
 Component:  wxGUI        |    Version:  svn-trunk
Resolution:               |   Keywords:  query, encoding, python, gettext
       CPU:  Unspecified  |   Platform:  MSWindows Vista
--------------------------+----------------------------------------------

Comment (by neteler):

 Replying to [comment:5 glynn]:
 > Replying to [comment:4 marisn]:
 >
 > >   In Python 2.4 the lgettext() family of functions were introduced.
 The intention of these functions is to provide an alternative which is
 more compliant with the current implementation of GNU gettext. Unlike
 '''gettext(), which returns strings encoded with the same codeset used in
 the translation file''', lgettext() will return strings encoded with the
 preferred system encoding, as returned by locale.getpreferredencoding().
 >
 > Right. Unfortunately, gettext.install() binds the _() function to the
 .gettext() method rather than to the .lgettext() method.
 >
 > Try r64834.

 Is this a backport candidate?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2617#comment:9>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list