View Issue Details

IDProjectCategoryView StatusLast Update
0000827luatexluatex bugpublic2015-10-18 16:41
ReporterUlrike FischerAssigned ToHans Hagen 
PrioritynoneSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version 
Target VersionFixed in Version0.80.2 
Summary0000827: \openin doesn't find files without extension
DescriptionWhen using \input{foo} LaTeX checks for the existence of a file with
\openin and \ifeof and this test fails for files without extension.
On the other side the primitive \input foo works without problem.

A plaintex-file for test is below.

I tested with
LuaTeX, Version beta-0.70.2-2012080612 (TeX Live 2012/W32TeX),
with miktex and with Version beta-0.77.0-2013041621 (rev 4633) (Context)

Remark: "\openin0 makefile " works for pdftex and xetex when using TeXLive 2012 but fails with miktex 2.9.
Steps To Reproduce\openin0 makefile % makefile exist in the folder
  \ifeof0 % gives: don't exist
   don't exist
  \else
   exist
  \fi
\closein0

\openin0 {makefile} %with braces
  \ifeof0 % gives: exist
   don't exist
  \else
   exist
  \fi
\closein0

\input makefile %works

\openin0 test-1 % test-1.tex exists
  \ifeof0 % gives: exist
   don't exist
  \else
   exist
  \fi
\closein0

\openin0 {test-1} % test-1.tex exists
  \ifeof0 % gives: exist
   don't exist
  \else
   exist
  \fi
\closein0
\input test-1 %works
\bye
TagsNo tags attached.

Activities

Hans Hagen

2015-10-18 16:41

manager   ~0001428

should work now

% makefile and test-1.tex must exist

\starttext

\def\test#1%
  {0000001: \ifeof0 not \fi found
   \closein0
   \par}

\openin0 makefile \test1
\openin0 {makefile} \test2
\openin0 test-1 \test3
\openin0 {test-1} \test4
\openin0 test-1.tex \test5
\openin0 {test-1.tex} \test6

\stoptext

Issue History

Date Modified Username Field Change
2013-05-06 10:47 Ulrike Fischer New Issue
2015-10-18 16:41 Hans Hagen Note Added: 0001428
2015-10-18 16:41 Hans Hagen Status new => closed
2015-10-18 16:41 Hans Hagen Assigned To => Hans Hagen
2015-10-18 16:41 Hans Hagen Resolution open => fixed
2015-10-18 16:41 Hans Hagen Fixed in Version => 0.80.2