Menu

#47 xindy filter fails on Windows

v2.4
open-accepted
5
2009-05-15
2009-05-15
No

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.

Discussion

  • Joachim Schrod

    Joachim Schrod - 2009-05-15

    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.

     
  • Joachim Schrod

    Joachim Schrod - 2009-05-15
    • labels: --> Kernel (incl. scripts)
    • milestone: --> v2.4
    • assigned_to: nobody --> jschrod
    • status: open --> open-accepted
     

Log in to post a comment.