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: use encoding argument #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fpvandoorn
Copy link

@fpvandoorn fpvandoorn commented Jun 30, 2024

Attempting to fix an error I got locally:

  File "C:\Users\Floris\AppData\Local\Programs\Python\Python311\Lib\site-packages\leanblueprint\Packages\blueprint.py", line 236, in make_lean_data
    lean_decls_path.write_text("\n".join(document.userdata.get("lean_decls", [])))
  File "C:\Users\Floris\AppData\Local\Programs\Python\Python311\Lib\pathlib.py", line 1079, in write_text
    return f.write(data)
           ^^^^^^^^^^^^^
  File "C:\Users\Floris\AppData\Local\Programs\Python\Python311\Lib\encodings\cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'charmap' codec can't encode character '\u0398' in position 259: character maps to <undefined>
plasTeX version 3.1
Command 'plastex -c plastex.cfg web.tex' returned non-zero exit status 1.

@fpvandoorn
Copy link
Author

I just installed this patch locally and I can successfully run leanblueprint web with this patch.

@fpvandoorn
Copy link
Author

ping

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.

1 participant