[luatex] LuaTeX crashes with Unicode.sfd

Akira Kakuto kakuto at fuk.kindai.ac.jp
Wed Jun 4 14:51:05 CEST 2014


Dear Qing,

> With the one line test:
>
>   \pdfmapline{test at Unicode@ <ipam.ttf}
>
> A fatal error is raised by LuaTeX:
>
>   This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/W32TeX) (rev 4971)  (format=luatex 2014.5.21)  2 JUN 2014 11:20
>    \write18 enabled.
>   **test.tex
>   (./test.tex{d:/texlive/2014/texmf-dist/fonts/sfd/ttf2pk/Unicode.sfd
>   !LuaTeX error (file d:/texlive/2014/texmf-dist/fonts/sfd/ttf2pk/Unicode.sfd): in
>   valid token:
>   FF00_0x10FFFF
>    
>    ==> Fatal error occurred, no output PDF file produced!

If I use subfont.c in pdftex instead of subfont.w
with the following 4 changes, it worked fine.
Therefore there must be bugs in subfont.w for luatex.

Thank you for your report.
Akira


(1)
#define sfd_open()      open_input(&sfd_file, kpse_sfd_format, FOPEN_RBIN_MODE)
--->
#define sfd_open(a)     (sfd_file = fopen((char *)(a), FOPEN_RBIN_MODE))

(2)
set_cur_file_name(sfd_name);
if (!sfd_open()) {
--->
if (!sfd_open(sfd_name)) {

(3)
pdftex_warn
--->
luatex_warn

(4)
pdftex_fail
--->
luatex_fail




More information about the luatex mailing list