Skip to content

Cleanup handling of unicode filenames - #165

Merged
pkgw merged 9 commits into
tectonic-typesetting:masterfrom
Mrmaxmeier:cleanup-unicode
Sep 25, 2018
Merged

Cleanup handling of unicode filenames#165
pkgw merged 9 commits into
tectonic-typesetting:masterfrom
Mrmaxmeier:cleanup-unicode

Conversation

@Mrmaxmeier

Copy link
Copy Markdown
Contributor

This simplifies the name_of_file variable by keeping it utf8-encoded instead of converting to utf16.
Previously filenames with low non-ascii characters like ö be wrongly processed while characters outside of the BMP range that require two utf16 code-points (like emojis) would cause segfaults.

With this patch tectonic now happily writes to hallöchen 🐨 welt 🌍.pdf instead of crashing.

@pkgw

pkgw commented Sep 16, 2018

Copy link
Copy Markdown
Collaborator

I'm sorry, I have no idea why I never followed up this PR. I will see if I can rebase it onto the current master.

@pkgw pkgw self-assigned this Sep 20, 2018
@pkgw

pkgw commented Sep 25, 2018

Copy link
Copy Markdown
Collaborator

This is awesome! Thanks for a great contribution.

@pkgw
pkgw merged commit b53f3b9 into tectonic-typesetting:master Sep 25, 2018
@Mrmaxmeier
Mrmaxmeier deleted the cleanup-unicode branch June 20, 2019 20:12
Mrmaxmeier pushed a commit to Mrmaxmeier/tectonic that referenced this pull request Oct 28, 2019
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