On 14 Jan 2002 at 15:00, Herold Heiko wrote:
> On the other hand, a little research in src/utils.c, make_directory()
> clearly shows only '/' is used as a directory separator.
>
> I'm wondering where the correct place for patching this (#ifdef WINDOWS
> obviously) would be - I suppose main.c, about line 648,
> case 'P':
> setval ("dirprefix", optarg);
> break;
>
> would be ok ? Or better call something in mswindows.c ? This would leave
> all the internal representation like before.
A possible change is to make cmd_file() in init.c remap '\' to '/'
when compiled for MS Windows. The C library for Windows seems to
cope with either character as a directory separator.
Then there is just the -P C: part of the problem to deal with. I
haven't investigated that properly yet, but I guess some bit of
code is looking for a relative subdirectory named C: or something.