[luatex] \openin with extensionless files.

luigi scarso luigi.scarso at gmail.com
Sun Jan 26 18:07:47 CET 2020


On Sun, Jan 26, 2020 at 11:41 AM luigi scarso <luigi.scarso at gmail.com>
wrote:

>
>
> On Thu, Jan 23, 2020 at 9:13 AM Henri Menke <henrimenke at gmail.com> wrote:
>
>> I just tested this patch and it seems to work.
>>
>> --- a/source/texk/web2c/luatexdir/tex/maincontrol.c
>> +++ b/source/texk/web2c/luatexdir/tex/maincontrol.c
>> @@ -3824,8 +3824,6 @@ void open_or_close_in(void)
>>          if (cur_cmd != left_brace_cmd) {
>>              /*tex Set |cur_name| to desired file name. */
>>              scan_file_name();
>> -            if (cur_ext == get_nullstr())
>> -                cur_ext = maketexstring(".tex");
>>          } else {
>>              scan_file_name_toks();
>>          }
>>
>
>
> yes, it looks consistent wit rev.7213.
> I want to make some checks before committing.
>
>
committed rev. 7280.
Now when  both test and test.tex are in the same folder,
luatex loads test.tex .
\input test

and

\input{test}

both work but

\newread\auxA
\openin\auxA=test
\read\auxA to\HOLDER\relax\show\HOLDER
\closein\auxA

and

\newread\auxA
\openin\auxA={test}
\read\auxA to\HOLDER\relax\show\HOLDER
\closein\auxA

\bye



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


More information about the luatex mailing list