Re: [GRASS GIS] #3883: GRASS master does not compile with Python 3 on Mac
"GRASS GIS" <[email protected]>
| Newsgroups | gmane.comp.gis.grass.devel |
|---|---|
| Message-ID | <[email protected]> |
#3883: GRASS master does not compile with Python 3 on Mac
--------------------------+-------------------------
Reporter: cmbarton | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 7.8.3
Component: Default | Version: svn-trunk
Resolution: | Keywords:
CPU: Unspecified | Platform: MacOSX
--------------------------+-------------------------
Comment (by guano):
Searching for this error I found it to be quite common with python2 code
being ported to python3, as with python3 all strings are unicode.
{{{
>>> b'\x9c'.decode('cp1252')
'œ'
>>> b'\x9c'.decode('utf8')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9c in position 0:
invalid start byte
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3883#comment:11>
GRASS GIS <https://grass.osgeo.org>
_______________________________________________
grass-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-dev