has the search path during format creation been changed?

Akira Kakuto kakuto at w32tex.org
Tue Apr 6 11:27:47 CEST 2021


Hi Norbert,

On 2021/04/06 17:24, Norbert Preining wrote:
> Akira, any idea?

I'm not confident that my patch is correct or not.
Please replace the previous patch by an attached
patch: fmtutil.pl.diff2, because it seems to work on Windows.

Thanks,
Akira
-------------- next part --------------
--- fmtutil.pl.orig	Tue Apr 06 15:06:24 2021
+++ fmtutil.pl	Tue Apr 06 18:17:32 2021
@@ -379,8 +379,11 @@
 
   # 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'} ||= "";


More information about the tex-live mailing list.