summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/latexconfig/lualatex-patch-kernel.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/latexconfig/lualatex-patch-kernel.tex')
-rw-r--r--Master/texmf-dist/tex/latex/latexconfig/lualatex-patch-kernel.tex26
1 files changed, 26 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/latexconfig/lualatex-patch-kernel.tex b/Master/texmf-dist/tex/latex/latexconfig/lualatex-patch-kernel.tex
new file mode 100644
index 00000000000..eee38bb8b79
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/latexconfig/lualatex-patch-kernel.tex
@@ -0,0 +1,26 @@
+% $Id: lualatexquotejobname.tex 18968 2010-06-14 11:22:59Z mpg $
+% Manuel Pegourie-Gonnard, originally written 2010. WTFPL v2.
+%
+% Misc. patches to commands in the LaTeX kernel for LuaTeX.
+
+\makeatletter
+
+% \endlinechar must always be < 127
+%
+% mpg: this was the only occurence of such an assignement in the kernel
+% (checked \newlinechar too)
+%
+% mpg: the +10000/-10000 breaks, and we want to avoid munging
+% \@tempcnta globally, so use a group with a few \expandafter's
+\def\@xtypein[#1]#2{%
+ \typeout{#2}%
+ %%\advance\endlinechar\@M
+ \begingroup \endlinechar\m@ne
+ \read\@inputcheck to#1%
+ \expandafter\endgroup
+ \expandafter\def\expandafter#1\expandafter{#1}%
+ %%\advance\endlinechar-\@M
+ \@typein}
+
+\makeatother
+\endinput