Mail Archives: djgpp-workers/2001/05/10/14:14:02
[Resending this; the AAA below used to use X's, which were dutifully
blocked by DJ's antispam device]
> What is needed is an algorithm that will produce properly truncated
> 8+3 names from an arbitrary long name. I once posted a description of
> what Windows 9X does' I can post that again, if it's needed. To be
> useful, the LFN TSR should make such properly truncated SFNs, unless
> there's already an identical SFN (meaning that another file clashes
> with this one). How such clashes are resolved is less important--for
> all I care, you could leave the CRC way of dealing with that--but the
I for one would prefer a slightly more readable version; for example,
Win4Lin's dos emulation (in which cwsdpmi doesn't run, so no DJGPP)
uses a AAA'YYYY.ZZZ (or AAAA'YYY.ZZZ, I forget) scheme for files on Linux
partitions (Win9x LFN's look like they do on regular DOS), where AAA is
the first portion of the filename, zzz is the first part of the extension
(if any), and YYYY is some sort of hash of the full filename. Obviously,
this has a greater chance of collisions if there are many similar file
names, but it does leave the SFN slightly more intelligible.
> default truncation should definitely be there, and it should be on by
> default. Otherwise, IMHO we simply retrack the bad design decisions
> made by Microsoft. They at least have the excuse that they were
> trying to solve a problem no one ever thought about.
I agree. Then again, I hardly ever use plain DOS these days, so my
vote doesn't really count for much.
- Raw text -