<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 22, 2020 at 10:30 PM Henri Menke <<a href="mailto:henrimenke@gmail.com">henrimenke@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I might have found the bug.  Compare this bit in open_or_close_in(void)<br>
<br>
    if (cur_cmd != left_brace_cmd) {<br>
        /*tex Set |cur_name| to desired file name. */<br>
        scan_file_name();<br>
        if (cur_ext == get_nullstr())<br>
            cur_ext = maketexstring(".tex");<br>
    } else {<br>
        scan_file_name_toks();<br>
    }<br>
<br>
with this bit in start_input(void)<br>
<br>
    if (cur_cmd != left_brace_cmd) {<br>
        /*tex Set |cur_name| to desired file name. */<br>
        scan_file_name();<br>
    } else {<br>
        scan_file_name_toks();<br>
    }<br>
<br>
In the former the extra branch<br>
<br>
    if (cur_ext == get_nullstr())<br>
        cur_ext = maketexstring(".tex");<br>
<br>
does not make any sense actually because start_file_name does not set<br>
cur_ext, which is therefore either going to be NULL or still set to the<br>
last value.  I think it this branch were removed, the code would behave<br>
correctly.<br></blockquote><div><br></div><div>Thank you fro the report, we will see it asap.</div><div></div></div><div>Probably it makes sense to have a  luatex-specific code  in any case, to play safe with old versions of luatex.</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature">luigi<br></div></div>