You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Multiple modules including sphinx.py, config.py, and build.py do not explicitly set the encoding='utf-8' option for Python open() function. As a result, the default encoding is gbk on Windows, but the file encoding is utf-8, thus resulting in
UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 884
In addition, the build script uses Linux shell commands such as, rm, cp, etc.
As there are no equivalent commands in Windows shell, the script cannot be run on Windows.
Future updates might address the aforementioned issues in order to support d2lbook to run on Windows.
The text was updated successfully, but these errors were encountered:
garylavayou
changed the title
Windows platform compatibility issues on file encoding and shell commands
Windows compatibility issues on file encoding and shell commands
Jan 12, 2022
@garylavayou we most probably have no plans to support windows in the near future. Feel free to send a PR if you'd like to add that or edit your own fork if that works for you. Thanks!
Multiple modules including
sphinx.py
,config.py
, andbuild.py
do not explicitly set theencoding='utf-8'
option for Pythonopen()
function. As a result, the default encoding isgbk
on Windows, but the file encoding isutf-8
, thus resulting inIn addition, the build script uses Linux shell commands such as,
rm
,cp
, etc.As there are no equivalent commands in Windows shell, the script cannot be run on Windows.
Future updates might address the aforementioned issues in order to support
d2lbook
to run on Windows.The text was updated successfully, but these errors were encountered: