<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Am 01.12.2017 um 15:44 schrieb Ulrike
Fischer:</div>
<blockquote type="cite" cite="mid:1kggkzxrqnmvl$.dlg@nililand.de">
<pre wrap="">This has also already been discussed in tex.sx
<a class="moz-txt-link-freetext" href="https://tex.stackexchange.com/questions/258127/why-lualatex-gives-erorr-too-many-open-files-but-pdflatex-does-not-on-same-lat">https://tex.stackexchange.com/questions/258127/why-lualatex-gives-erorr-too-many-open-files-but-pdflatex-does-not-on-same-lat</a>
</pre>
</blockquote>
<br>
Thanks for that link.<br>
<br>
I tested pdflatex with a 100.000 lines input and found that pdftex
correctly included all the 14.000+ pdfs it was expected to include.<br>
<br>
So <br>
<ul>
<li>pdflatex works correctly,</li>
<li>xelatex breaks after 5.000 included pdfs,</li>
<li>lualatex breaks after whatever the soft limit for file
descriptors is set to. </li>
</ul>
luatex is the only engine that keeps all included pdfs open, and
this is known since at least 2015.<br>
I think this is a serious regression compared to pdflatex.<br>
<br>
Increasing the fd limit beyond 1024 does not help in my case (<a
moz-do-not-send="true"
href="http://lists.gnu.org/archive/html/bug-lilypond/2017-11/msg00038.html">see
this message on bug-lilypond</a>).<br>
I could use pdflatex ... if I would know how to temporarily disable
and reenable inputenc.<br>
Lilypond is a music engraving program, it expects utf8 input. I use
something like<br>
<blockquote><tt>\NeedsTeXFormat{LaTeX2e}</tt><br>
<tt>[...]</tt><br>
<tt>\usepackage[utf8]{inputenc} % Needed if pdflatex is used</tt><br>
<tt>[ ...</tt><br>
<tt> </tt><tt> Code to implement the lilyfrag environment</tt><br>
<tt> that </tt><br>
<tt> - writes the content of a lilyfrag environment to a
lilypond source file,</tt><br>
<tt> - executes lilypond using write18 and</tt><br>
<tt> - includes the pdfs produced by lilypond </tt><br>
<tt>...]</tt><br>
<tt>\begin{document}</tt><br>
<tt>[...]<br>
</tt><tt>\begin{lilyfrag}{10 cm}{18 cm}<br>
% needs to be written to an utf8 encoded file<br>
</tt><tt> \relative c'{ c d e f g a h c }</tt><br>
<tt> \addlyrics { utf8 Lyrics }</tt><br>
<tt>\end{lilyfrag}</tt><br>
<tt>[...]</tt><br>
<tt>\end{document}</tt><br>
</blockquote>
Is there any chance that lualatex will be fixed soon and/or does
anyone know a solution of the "temorarily disable inputenc" problem?<br>
<br>
Knut<br>
</body>
</html>