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

Tiff previews causing fatal UTF-8 decoding errors with luatex #42

Open
davidcarlisle opened this issue Jan 21, 2025 · 0 comments
Open
Assignees

Comments

@davidcarlisle
Copy link
Member

https://tex.stackexchange.com/a/735446/1090

A Tiff preview is a block of bnary data at the start of a EPS file. TeX just has to get past it without error to find the %%BoundingBox
In classic TeX this is achieved by making all characters have a safe catcode, but in luatex the UTF-8 decoder acts earlier and issues an error,.
The same would be true with xetex except there the bytes are replace by a Uniocde Replacement character with just a log info warning.

This could be addressed in the graphics package core EPS reader, but mostly backend specific code is kept out of there so I would propose
to fix in dvips.def in this repository.

@davidcarlisle davidcarlisle self-assigned this Jan 21, 2025
@davidcarlisle davidcarlisle changed the title Tiff previews cauing fatal UTF-8 decoding errors with luatex Tiff previews causing fatal UTF-8 decoding errors with luatex Jan 21, 2025
davidcarlisle added a commit that referenced this issue Jan 21, 2025
josephwright pushed a commit that referenced this issue Jan 22, 2025
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

1 participant