Glob fails on windows
Brought to you by:
jschrod
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.
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.
That change seems to fix the problem. Thank you.
Patch