texlive/etex-addlanguage-fix-bz1215257.patch
Troy Dawson 4c0ca22a72 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/texlive#6c615e0bb91c156585502e5e878bd5955e9a2a44
2020-10-15 15:45:26 -07:00

26 lines
1.1 KiB
Diff

--- etex.src.orig 2015-09-16 14:17:48.263123165 -0400
+++ etex.src 2015-09-16 14:14:20.673610421 -0400
@@ -290,8 +290,10 @@
\def \addlanguage #1#2#3#4#5% language patterns exceptions lhm rhm
{\expandafter \et@xlang \csname lang@#1\endcsname
- \expandafter \chardef \csname lhm@#1\endcsname=#4 % V1.0-1
- \expandafter \chardef \csname rhm@#1\endcsname=#5 % V1.0-1
+ \def\paramD{#4}\ifx\paramD\empty\def\paramD{1}\fi % Default value lhm is 1 % V2.1-1
+ \def\paramE{#5}\ifx\paramD\empty\def\paramE{1}\fi % Default value rhm is 1 % V2.1-1
+ \expandafter \chardef \csname lhm@#1\endcsname=\paramD % V2.1-1
+ \expandafter \chardef \csname rhm@#1\endcsname=\paramE % V2.1-1
\uselanguage {#1}%
\input #2
\if *#3*\else \input #3 \fi
@@ -776,6 +778,9 @@
%% Revision-history:
+24-ARP-2015: 2.1;1 Allow empty values on \addlanguages for parameters 4 and 5
+ Changed by Edgar Hoch
+
01-FEB-1999: 2.1;0 Allow file to be used with e-TeX versions 2.0 and 2.1
25-MAR-1998: 2.0;19 Improved log message for \{glob|loc}{marks|box}vector (PEB)