1. on Win32, kpsewhich often fails to find texexec.ini. I created a
I have applied a couple of patches to texexec and texutil. They are attached.
2. ConTeXt texexec uses $ENV{"HOME"} to set a value in filename.tmp, e.g., on unix:
I tried your example and this is what I get : C:\tmp>cat try.tmp % try.top \unprotect \setupoutput[pdftex] \setupsystem[\c!gebied={C:/Documents and Settings/popineau/My Documents/}] \setupsystem[\c!n=2] \setupsystem[inputfile=try.tex] \protect Which seems correct, isn't it? Fabrice ==== //depot/Master/texmf/context/perltk/texexec.pl#32 - c:\source\texlive\Master\texmf\context\perltk\texexec.pl ==== @@ -390,6 +390,11 @@ { my $p = checked_path($_) . 'kpsewhich' ; if ((-e $p)||(-e $p . '.exe')) { $kpsewhich = $p ; +# Fix by Fabrice P +# irun.exe report $own_path to be c:/progra~1/texlive/bin/win32 +# and there is no space in it ! +# We could get spurious error messages here if there $p has spaces and $own_quote is not set + $own_quote = ($kpsewhich =~ m/^[^\"].* / ? "\"" : "") ; $IniPath = found_ini_file("ini") ; unless (-e $IniPath) { $IniPath = found_ini_file("rme") } last } } ==== //depot/Master/texmf/context/perltk/texexec.pl#34 - c:\source\texlive\Master\texmf\context\perltk\texexec.pl ==== ==== //depot/Master/texmf/context/perltk/texutil.pl#25 - c:\source\texlive\Master\texmf\context\perltk\texutil.pl ==== @@ -800,6 +800,7 @@ { my $p = checked_path($_) . 'kpsewhich' ; if ((-e $p)||(-e $p . '.exe')) { $kpsewhich = $p ; last } } } + $kpsewhich = "\"$kpsewhich\"" if ($kpsewhich =~ m/^[^\"].* / ? "\"" : "") ; while (<TEX>) { chomp ; my $Filter ; ==== //depot/Master/texmf/context/perltk/texutil.pl#26 - c:\source\texlive\Master\texmf\context\perltk\texutil.pl ====