[syslinux] COMBOOT API: Add calls for directory functions; Implement for FAT

H. Peter Anvin hpa at zytor.com
Fri Dec 5 12:47:47 PST 2008


Jernej Simončič wrote:
> On Thursday, December 4, 2008, 23:37:55, H. Peter Anvin wrote:
> 
>> It doesn't, and -- this is the really sucky part -- in general it really
>> can't.  However, we can probably hack up something that is Good
>> Enough[TM], basically by inverting the first field mapping in the
>> codepage array and returning '?' or some such for anything we don't
>> recognize -- I think there is actually a particular character specced in
>> the FAT specification (probably '?', but it might be '_').
> 
> IIRC, Win9x used _ when it encountered filenames with characters
> outside the active codepage (and wouldn't let you access these files,
> unless you "repaired" the volume with scandisk, which destroyed the
> filenames).
> 

Right, of course... '?' is an illegal filename character in Windoze.

Not that it matters all that much in this case -- those filenames will
be inaccessible, because they won't match either way.

There is a third option, which might be better, actually: if the
filename contains a character we can't make out, return the shortname
for that file.  The shortname will always be representable.

	-hpa




More information about the Syslinux mailing list