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

Changing Lua locale leads to a crash with some fonts #573

Open
Darkyenus opened this issue Apr 9, 2019 · 1 comment
Open

Changing Lua locale leads to a crash with some fonts #573

Darkyenus opened this issue Apr 9, 2019 · 1 comment
Labels
bug Software bug issue
Milestone

Comments

@Darkyenus
Copy link
Contributor

Combination of this code

\begin{document}

\script{ os.setlocale("cs_CZ.utf-8") }
\font[filename=LinLibertine_R.otf]

foo

%\script{ os.setlocale("en_US.utf-8") } % Uncommenting this fixes it
\end{document}

with Linux Libertine font, causes a crash:

> sile localebug.sil
This is SILE 0.9.5.1
<localebug.sil>
[1] 
libtexpdf:fatal: CFF: Parsing CFF DICT failed. (error=-1)

The font works fine with default locale or when the locale is changed back at the end of the document. Some fonts work, some don't. Most (but not all) ttf fonts work, while most (but not all) otf fonts don't work.

@alerque alerque added the bug Software bug issue label Apr 10, 2019
@simoncozens
Copy link
Member

OK, this is an upstream bug, albeit one that we need to fix. I will open a libtexpdf bug and we will track it there.

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

No branches or pull requests

3 participants