xindy filter fails on Windows
Brought to you by:
jschrod
Running xindy on Windows fail (at least on my TeX Live 2008 installation), because
the tex2xindy filter is not found:
xindy -I latex -M helman -d script -d level=3 -d keep_tmpfiles -t out-tex/main.ilg out-tex/main.idx
concatenated xindy input file: C:\DOCUME~1\martin\LOCALS~1\Temp\U2NxMRleKw
Running filter: C:/Program Files/texlive/2008/bin/win32/tex2xindy <C:\DOCUME~1\m
artin\LOCALS~1\Temp\U2NxMRleKw >C:\DOCUME~1\martin\LOCALS~1\Temp\ejh7UBKnIo
'C:/Program' is not recognized as an internal or external command, operable program or batch file.
Changing line
system "$filter <$input >$output";
in sub filter_index to
system "\"$filter\" <$input >$output";
seems to solve the problem.
Yes, the base script is still very Unix-centric and doesn't cope with spaces in file names. (In fact, $input and $output should be quoted as well.)
I'll change it accordingly.