The following ecm compiles fine with LaTeX and XeLaTeX, but doesn't work with LuaLaTeX :
\documentclass{minimal}
\begin{document}
\typein{test}
\end{document}
And here is the error :
Invalid \endlinechar.
<recently read> \@M
l.4 \typein{test}
?
\endlinecharseems to get set to\@Mwhich is 10000, a value normally used as maximum for penalties. The TeXBook states that for values <0 and >255 no endline character is appended to the line. Maybe in LuaTeX the value for\endlinecharis limited to some value below 10000 and therefore this causes an error? – Martin Scharrer♦ Mar 1 '11 at 21:34\endlinechar=-1should work for the intended purpose. Note that even if luatex were to accept\endlinechar=10000, this would mean something completely different: in unicode, char 10000 is actually "UPPER RIGHT PENCIL" – Taco Hoekwater Mar 2 '11 at 11:30\typein, but I assume this should be a job for the lualatex format itself. In any case, you will have to ask a latex expert, which I am definitely not... – Taco Hoekwater Mar 2 '11 at 18:25