lynx-dev
[Top][All Lists]
Advanced

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

Re: LYNX-DEV DOS problems for lynx development code


From: Doug Kaufman
Subject: Re: LYNX-DEV DOS problems for lynx development code
Date: Sat, 29 Nov 1997 00:32:52 -0800 (PST)

On Fri, 28 Nov 1997, I wrote:

> Further investigation reveals that the problem with "\." being
> appended to DOS filenames only occurs when the file is accessed as
> "file://localhost/filename", and not when accessed by the full path and
> filename. In addition, it only occurs with filenames 3 or 4 characters
> long. 1 or 2 character filenames and 5 to 8 character filenames don't
> add the "\.". Does anyone see where this could be happening?

The following patch seems to fix the problem with  "." or "\." being
appended to 3 and 4 character DOS filenames. I hesitate to suggest it
being applied to the distribution, since I don't understand what the
code that I commented out is trying to do.  Could someone explain this
code to me? Thanks.
                           Doug

*** lynx2-7-1/WWW/Library/Implementation/HTDOS.c        Tue Nov  4 14:55:08 1997
--- lynx2-7-1/WWW/Library/Implementation/HTDOS.c.new    Sat Nov 29 00:13:50 1997
***************
*** 69,77 ****
        }
  
  //    if(strlen(cp_url) < 4) cp_url[] = ':';
!       if(strlen(cp_url) == 3) cp_url[3] = '\\';
  
!       if(strlen(cp_url) == 4) cp_url[4] = '.';
  
        if((strlen(cp_url) > 2) && (cp_url[1] == '|'))
                cp_url[1] = ':';
--- 69,77 ----
        }
  
  //    if(strlen(cp_url) < 4) cp_url[] = ':';
! /*    if(strlen(cp_url) == 3) cp_url[3] = '\\';
  
!       if(strlen(cp_url) == 4) cp_url[4] = '.'; */
  
        if((strlen(cp_url) > 2) && (cp_url[1] == '|'))
                cp_url[1] = ':';
__
Doug Kaufman
Internet: address@hidden (preferred)
          address@hidden

reply via email to

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