[GRASS-dev] [GRASS GIS] #2634: 'utf8' codec can't decode byte 0xf6 in position 8: invalid start byte

#2634: 'utf8' codec can't decode byte 0xf6 in position 8: invalid start byte
-----------------------+-------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: critical | Milestone: 7.0.1
Component: Default | Version: svn-trunk
Resolution: | Keywords: utf, wxgui
       CPU: x86-32 | Platform: MSWindows 7
-----------------------+-------------------------

Comment (by hellik):

Replying to [comment:19 annakrat]:
> Please try this (with r64834 in place):
> {{{
> #!diff
> Index: task.py
> ===================================================================
> --- task.py (revision 65450)
> +++ task.py (working copy)
> @@ -232,7 +232,7 @@
> if p.get('default', '') != '':
> cmd += ['%s=%s' % (p['name'], p['default'])]
> elif ignoreErrors and not suppress_required and not
ignoreRequired:
> - cmd += [('%s=%s' % (p['name'],
_('<required>'))).decode('utf-8')]
> + cmd += ['%s=%s' % (p['name'], _('<required>'))]
> elif p.get('value', '') == '' and p.get('default', '') !=
'' and not ignoreDefault:
> cmd += ['%s=%s' % (p['name'], p['default'])]
> elif p.get('value', '') != '' and \
>
> }}}
>
> This was introduced in r61704 and seems to be not needed with r64834.

tested locally with with r64834 in place: no error anymore.

so let's test with the next nightly build and go on to the next RC!

thanks!

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

#2634: 'utf8' codec can't decode byte 0xf6 in position 8: invalid start byte
-----------------------+-------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: critical | Milestone: 7.0.1
Component: Default | Version: svn-trunk
Resolution: | Keywords: utf, wxgui
       CPU: x86-32 | Platform: MSWindows 7
-----------------------+-------------------------

Comment (by annakrat):

Replying to [comment:20 hellik]:
>
> tested locally with with r64834 in place: no error anymore.
>
> so let's test with the next nightly build and go on to the next RC!
>
> thanks!

Committed to trunk in r65529 and backported to releasebranch in r65530.

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

#2634: 'utf8' codec can't decode byte 0xf6 in position 8: invalid start byte
-----------------------+-------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: critical | Milestone: 7.0.1
Component: Default | Version: svn-trunk
Resolution: | Keywords: utf, wxgui
       CPU: x86-32 | Platform: MSWindows 7
-----------------------+-------------------------

Comment (by hellik):

Replying to [comment:21 annakrat]:
> Replying to [comment:20 hellik]:
> >
> > tested locally with with r64834 in place: no error anymore.
> >
> > so let's test with the next nightly build and go on to the next RC!
> >
> > thanks!
>
> Committed to trunk in r65529 and backported to releasebranch in r65530.
>

tested with

{{{
GRASS Version: 7.1.svn
GRASS SVN revision: 65532
Build date: 2015-07-02
Build platform: i686-pc-mingw32
GDAL: 1.11.2
PROJ.4: 4.8.0
GEOS: 3.4.2
SQLite: 3.7.17
Python: 2.7.4
wxPython: 2.8.12.1
Platform: Windows-7-6.1.7601-SP1 (OSGeo4W)
}}}

as it seems to work now, I'm closing ticket.

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

#2634: 'utf8' codec can't decode byte 0xf6 in position 8: invalid start byte
-----------------------+-------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: critical | Milestone: 7.0.1
Component: Default | Version: svn-trunk
Resolution: fixed | Keywords: utf, wxgui
       CPU: x86-32 | Platform: MSWindows 7
-----------------------+-------------------------
Changes (by hellik):

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

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

#2634: 'utf8' codec can't decode byte 0xf6 in position 8: invalid start byte
-----------------------+-------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: critical | Milestone: 7.0.1
Component: Default | Version: svn-trunk
Resolution: fixed | Keywords: utf, wxgui
       CPU: x86-32 | Platform: MSWindows 7
-----------------------+-------------------------

Comment (by glynn):

Replying to [comment:10 martinl]:

> an overhaul of any string processing in wxgui is required with strict
rules (that need to be created).

Adding support for Python 3 would probably help with that, as Python 3
doesn't perform implicit conversions between byte strings and Unicode
strings (it raises a TypeError).

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