delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/10/12/14:54:54

From: sandmann AT clio DOT rice DOT edu (Charles Sandmann)
Message-Id: <10110121850.AA20535@clio.rice.edu>
Subject: Re: W2K/XP fncase [was Re: New perl package]
To: eliz AT is DOT elta DOT co DOT il
Date: Fri, 12 Oct 2001 13:50:00 -0500 (CDT)
Cc: djgpp-workers AT delorie DOT com, tim DOT van DOT holder AT pandora DOT be, acottrel AT ihug DOT com DOT au
In-Reply-To: <2947-Fri12Oct2001194723+0200-eliz@is.elta.co.il> from "Eli Zaretskii" at Oct 12, 2001 07:47:23 PM
X-Mailer: ELM [version 2.5 PL2]
Mime-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> I'd like to understand what happens inside _lfn_gen_short_name first.

1) with DH=0 (default) it returns name run together without '.' and
without any spaces as are present in W9x versions.  Pretty useless.
2) with DH=1 (better) it returns name with '.' in place (so we must
get rid of our post-processing code). BUT...

In both cases, any special characters such as _ or ! put garbage into
the file name stream:
_.CVS -> _67C0.CVS
!.cvs -> !60D2.CVS

None of the flags in DL seem to make any difference.  So it appears we
either force fncase=y all the time by returning a bogus string, or 
do something a little better than nothing.  Just truncating the 
string to 8.3 and upcasing does fix 99% of the examples on the disk.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019