[GRASS-dev] mkhtml fails on Windows with UnicodeDecodeError
Martin Landa
landa.martin at gmail.com
Tue Aug 23 09:49:42 PDT 2022
Hi,
currently wingrass78 builds on wingrass.fsv.cvut.cz fails with [1]:
VERSION_NUMBER=7.8.8dev VERSION_DATE=2022 MODULE_TOPDIR=../.. \
python3
/usr/src/grass78/dist.x86_64-w64-mingw32/tools/mkhtml.py v.random >
/usr/src/grass78/dist.x86_64-w64-mingw32/docs/html/v.random.html
Traceback (most recent call last):
File "C:\msys64\usr\src\grass78\dist.x86_64-w64-mingw32\tools\mkhtml.py",
line 648, in <module>
git_commit = get_last_git_commit(
File "C:\msys64\usr\src\grass78\dist.x86_64-w64-mingw32\tools\mkhtml.py",
line 235, in get_last_git_commit
stdout = decode(stdout)
File "C:\msys64\usr\src\grass78\dist.x86_64-w64-mingw32\tools\mkhtml.py",
line 111, in decode
return bytes_.decode(enc)
File "C:\\OSGeo4W\\apps\\Python39\lib\encodings\cp1250.py", line 15, in decode
return codecs.charmap_decode(input,errors,decoding_table)
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position
58: character maps to <undefined>
On Windows 2016 I can't change encoding to UTF-8 (I am getting a
similar error with cp1252). I tried to set up LC_ALL or
PYTHONIOENCODING, but nothing helped. Default encoding reported by
locale.getdefaultlocale() is still cp1250/cp1252 and not UTF-8. Any
idea how I can change default encoding on Windows to UTF-8?
Thanks in advance! Martin
[1] https://wingrass.fsv.cvut.cz/grass78/x86_64/logs/log-r1f724052b-1/package.log
--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20220823/ebce6ee5/attachment.htm>
More information about the grass-dev
mailing list