summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist')
-rwxr-xr-xMaster/texmf-dist/scripts/texlive/fmtutil.pl9
1 files changed, 8 insertions, 1 deletions
diff --git a/Master/texmf-dist/scripts/texlive/fmtutil.pl b/Master/texmf-dist/scripts/texlive/fmtutil.pl
index db6a559fa38..ef5a22833a1 100755
--- a/Master/texmf-dist/scripts/texlive/fmtutil.pl
+++ b/Master/texmf-dist/scripts/texlive/fmtutil.pl
@@ -3,7 +3,7 @@
# fmtutil - utility to maintain format files.
# (Maintained in TeX Live:Master/texmf-dist/scripts/texlive.)
#
-# Copyright 2014-2021 Norbert Preining
+# Copyright 2014-2022 Norbert Preining
# This file is licensed under the GNU General Public License version 2
# or any later version.
#
@@ -709,6 +709,13 @@ sub rebuild_one_format {
# get rid of leading * in inifiles
$inifile =~ s/^\*//;
+ # Add -kanji-internal option for create (e-)p(La)TeX format
+ # with (e-)upTeX's pTeX compatible mode.
+ if ($eng =~ /^e?uptex$/ && $fmt =~ /^e?p/ && $addargs !~ /-kanji-internal=/) {
+ my $kanji = win32() ? "sjis" : "euc";
+ $addargs = "-kanji-internal=$kanji " . $addargs;
+ }
+
if ($fmt eq "metafun") { $prgswitch .= "mpost"; }
elsif ($fmt eq "mptopdf") { $prgswitch .= "context"; }
elsif ($fmt =~ m/^cont-..$/) { $prgswitch .= "context"; }