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

H. Peter Anvin hpa at zytor.com
Thu Dec 4 14:37:55 PST 2008


Gene Cumm wrote:
> 
> With regards to character sets, I will need to change some of how I'm
> coding this as I'm merely truncating the wide character to a 1-byte
> character for now.  Quick but dirty.  Peter, I know the codepage is
> usable for matching but does it provide for this sort of functionality
> (wide character to byte character conversion)?  It doesn't look it
> (unless I'm thinking wrong).
> 

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 '_').

	-hpa




More information about the Syslinux mailing list