<div dir="ltr"><div>Dear all,</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">út 23. 8. 2022 v 18:49 odesílatel Martin Landa <<a href="mailto:landa.martin@gmail.com">landa.martin@gmail.com</a>> napsal:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><span style="color:rgb(0,0,0);white-space:pre-wrap">        python3 /usr/src/grass78/dist.x86_64-</span><span style="color:rgb(0,0,0);white-space:pre-wrap">w64-mingw32/tools/mkhtml.py v.random > /usr/src/grass78/dist.x86_64-</span><span style="color:rgb(0,0,0);white-space:pre-wrap">w64-mingw32/docs/html/v.</span><span style="color:rgb(0,0,0);white-space:pre-wrap">random.html</span><br></div><div><pre style="color:rgb(0,0,0);white-space:pre-wrap">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</pre></div></div></blockquote><div>the question is also why we are using default OS encoding to decode HTML pages [1]. Couldn't we simply use UTF-8 regardless of OS system locale?<br></div></div><br clear="all"><div>Martin</div><div><br></div><div>[1] <a href="https://github.com/OSGeo/grass/blob/releasebranch_7_8/tools/mkhtml.py#L93">https://github.com/OSGeo/grass/blob/releasebranch_7_8/tools/mkhtml.py#L93</a></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Martin Landa<br><a href="http://geo.fsv.cvut.cz/gwiki/Landa" target="_blank">http://geo.fsv.cvut.cz/gwiki/Landa</a><br><a href="http://gismentors.cz/mentors/landa" target="_blank">http://gismentors.cz/mentors/landa</a></div></div>