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

WP 60.0 regression: UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte #1974

Closed
castedo opened this issue Sep 29, 2023 · 3 comments

Comments

@castedo
Copy link

castedo commented Sep 29, 2023

Bad news on 60.0.

STEPS:

Running weasyprint 60.0 with input7.html.txt

weasyprint input7.html out.pdf

I get exception:

  File "/usr/local/lib/python3.11/site-packages/weasyprint/layout/preferred.py", line 312, in inline_line_widths
    child_text[resume_index:].decode(), child.style,
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte

Here's the full stderr output I get:
stderr.txt

Looking at the HTML and knowing the pipeline I use i don't think there is anything unusual with unicode here.

This is a regression affecting the document pipeline that I run regularly.

@castedo
Copy link
Author

castedo commented Sep 29, 2023

Also, I run this within a container so I can share the container image if you have trouble reproducing.

@liZe
Copy link
Member

liZe commented Sep 29, 2023

Hi @castedo!

It’s probably a duplicate of #1973. Does the current main branch work for you?

@castedo
Copy link
Author

castedo commented Sep 29, 2023

Good news! The main branch does work for me!

@castedo castedo closed this as completed Sep 29, 2023
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

No branches or pull requests

2 participants