lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LYNX-DEV Re: Why use `cp' and `rm' when _WINDOWS defined?


From: Doug Kaufman
Subject: Re: LYNX-DEV Re: Why use `cp' and `rm' when _WINDOWS defined?
Date: Sun, 15 Mar 1998 10:59:39 -0800 (PST)

On Sun, 15 Mar 1998 address@hidden wrote:

> >PATH.  Do you know what happens when Windows' lynx calls `cp.exe',
> >giving it a Windows file path, (well, not, quite,
> >`C:\windows\temp/897532.html' isn't exactly what the developers
> >mean when DOSPATH is defined in lynx)?  (Sorry for the nested
> >question.)

I now see the problem. This was fixed for DOS a while ago, but not for
Windows (95 or NT). The following patch, which uses the DJGPP fix for
_WINDOWS should take care of it. I don't have Win95, so I can't test it
myself.
                                     Doug

*** lynx2-8/src/LYMain.c        Fri Feb 27 10:25:08 1998
--- lynx2-8/src/LYMain.c.new    Sun Mar 15 10:45:26 1998
***************
*** 742,748 ****
        StrAllocCat(lynx_temp_space, ":");
      }
  #else
! #ifndef __DJGPP__
      if (((len = strlen(lynx_temp_space)) > 1) &&
        lynx_temp_space[len-1] != '/') {
        StrAllocCat(lynx_temp_space, "/");
--- 742,748 ----
        StrAllocCat(lynx_temp_space, ":");
      }
  #else
! #if !defined(__DJGPP__) && !defined(_WINDOWS))
      if (((len = strlen(lynx_temp_space)) > 1) &&
        lynx_temp_space[len-1] != '/') {
        StrAllocCat(lynx_temp_space, "/");
__
Doug Kaufman
Internet: address@hidden (preferred)
          address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]