Menu

#51 Glob fails on windows

open
nobody
5
2011-09-13
2011-09-13
Legolas
No

I have TeX Live installed in Program Files, thus in a directory with spaces. Therefore, the glob function on line 714 does not work. I have temporary fixed my installation by adding:
my $ldx = $ld;
$ldx =~ s/ /\\ /g;
@styles = glob("$ldx/$language/$variant$cp*-lang.xdy");

Though, as I am not too familiar with Perl, I am not sure if this is the right solution.

Discussion

  • Joachim Schrod

    Joachim Schrod - 2011-09-14

    I don't have a Windows installation with xindy at hand.

    Could you please try out the following, instead of your changes:

    1) Roughly at line 350, where all the other "use ..." lines are, add the line
    use File::Glob qw(bsd_glob);
    2) Change the call to glob(...) to bsd_glob(...).
    I.e., the line will read @styles = bsd_glob(...) then.

    Try if that works on Windows, and tell me.

     
  • Legolas

    Legolas - 2011-09-16

    That change seems to fix the problem. Thank you.

     
  • Legolas

    Legolas - 2012-07-13

    Patch

     

Log in to post a comment.