[luatex] Bugs in \input{...}

luigi scarso luigi.scarso at gmail.com
Wed Mar 25 08:53:27 CET 2020


On Tue, Mar 24, 2020 at 10:08 PM Phelype Oleinik <phe.h.o1 at gmail.com> wrote:

> Hi Luigi,
>
> Thanks for fixing those issues with \input!
>
> I think I found another one, related to this:
>
>     Runaway text?
>>>     ! Forbidden control sequence found while scanning text of
>>> \csname\endcsname.
>>>     <inserted text>
>>>     }
>>>     <to be read again>
>>>     \boom
>>>     l.3 \input{\boom
>>>
>>>     ?
>>
>>
> but with \unexpanded:
>
>     \directlua{\unexpanded{%
>       out = io.open('testfile.tex','w')
>       out:write('hello')
>       io.close(out)}}
>     \edef\x{\unexpanded\expandafter{\input{testfile.tex}}}
>
> also prints:
>
>     Runaway text?
>     hello
>     ! File ended while scanning text of \csname\endcsname.
>     <inserted text>
>     }
>     l.6 ...{\unexpanded\expandafter{\input{testfile.tex}
>                                                       }}
>     ?
>
> with \csname\endcsname rather than \unexpanded.
>
>
Thank you for the report , I will fix it in the next 1.12.1 release.


-- 
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/luatex/attachments/20200325/3e6ad333/attachment.html>


More information about the luatex mailing list.