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

From: sandmann AT clio DOT rice DOT edu (Charles Sandmann)
Message-Id: <10110121820.AA13335@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:20:51 -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

> Are you proposing to replace the current code of _lfn_gen_short_name
> with this?  

At least for the case of NT-like and LFN, yes.  This would be better
than just always assuming fncase=y.

> If so, I think the code is going to be messy, because there are quite 
> a few special characters and special cases to deal with.

If you strive for perfection, maybe.  But instead of fncase=y always,
suppose we only handled the simple cases (like all letter 8.3) - at
least it would be closer to the current non W2K/XP behavior.

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

I plan to still look at this when I get a chance, but in 99% of the
cases I've observed the current version behaving I could reproduce
it with a simple loop without needing to call an interrupt which
will probably do the wrong thing :-)

- Raw text -


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