summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2021-04-06 11:16:53 +0000
committerNorbert Preining <preining@logic.at>2021-04-06 11:16:53 +0000
commitbb4e1a7a425f2dec1173950cca12e6fd4bba0047 (patch)
treebb6a3b47a3204515b7a6ba94c226516a6cb7dac3 /Master/texmf-dist
parentd9a6eee324dc910802573abc02d4c388b4a0d2ce (diff)
fmtutil.pl: work around Windows kpsewhich incompatibility
patch by Akira Kakuto git-svn-id: svn://tug.org/texlive/trunk@58769 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rwxr-xr-xMaster/texmf-dist/scripts/texlive/fmtutil.pl7
1 files changed, 5 insertions, 2 deletions
diff --git a/Master/texmf-dist/scripts/texlive/fmtutil.pl b/Master/texmf-dist/scripts/texlive/fmtutil.pl
index dab304429b3..4c8aa7ede59 100755
--- a/Master/texmf-dist/scripts/texlive/fmtutil.pl
+++ b/Master/texmf-dist/scripts/texlive/fmtutil.pl
@@ -379,8 +379,11 @@ sub callback_build_formats {
# code taken over from the original shell script for KPSE_DOT etc
my $thisdir = cwd();
- $ENV{'KPSE_DOT'} = $thisdir;
-
+ if (win32()) {
+ $ENV{'KPSE_DOT'} = "$thisdir$sep.";
+ } else {
+ $ENV{'KPSE_DOT'} = $thisdir;
+ }
# due to KPSE_DOT, we don't search the current directory, so include
# it explicitly for formats that \write and later on \read
$ENV{'TEXINPUTS'} ||= "";