On Sat, Feb 04, 2012 at 02:49:06PM -0800, Karl Berry wrote:
> Indeed, I do that a lot. This is inherited from texi2html, though,
> so I figured there was something magical in perl regexp to consider
> \ as / automatically. Looks like it was wrong...
>
> No, it would crazy to automatically make the meaning of \ and / in
> regexps platform-dependent :).
>
> In general, / works fine on Windows as a separator. I'm not sure why
> it's not working here, but I don't think it's our job to worry about it.
I know why, instead of dirname, for instance, there are regexp like,
l. 923 of texi2any.pl
if ($input_file_name =~ /(.*\/)/) {
$input_directory = $1;
}
or l. 334, to determine if a path is absolute:
if ($file =~ /^\//) {
Both will fail if the path separator is \.
Though, since I cannot test on windows, I'd prefer a patch also tested on
unix/linux rather than doing it myself.
--
Pat