Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compile process for python3 on Windows #122

Merged
merged 1 commit into from
Jul 31, 2022

Conversation

jacquesh
Copy link

It's not clear whether python3 is supported. I would expect so considering that (as far as I know, I'm not usually a python developer) python2 is deprecated. The readme does not specify and the build.bat windows script explicitly calls out Python27 in the path.

As it stands python3 will fail to read in the input xhtml files because they contain bytes that are not valid using the default codepage on Windows (in English at least). Loading those files as utf-8 explicitly resolves this issue and is correct as long as all the xhtml files are utf-8 encoded. I have no idea what the encoding for those xhtml pages is intended to be but utf-8 seems like generally a reasonable assumption and it seems to work on the few pages I checked.

As it stands python3 will fail to read in the input xhtml files
because they contain bytes that are not valid using the default
codepage on Windows (in English at least). Loading those files
as utf-8 explicitly resolves this issue and is correct as long
as all the xhtml files are utf-8 encoded.
@BSVino BSVino merged commit 67d3053 into BSVino:mainline Jul 31, 2022
@BSVino
Copy link
Owner

BSVino commented Jul 31, 2022

Odd because the build action uses python 3. Maybe it's just a Windows thing.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants