summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/texlive/fmtutil.pl
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/scripts/texlive/fmtutil.pl')
-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'} ||= "";