On 5/29/07, Eric Auer <[EMAIL PROTECTED]> wrote:
> > there are no "toupper" or similar function calls from dos_open()
> > down to exechr().
>
> This is because the case (in) sensitivity handling happens in
> DosOpenSft which in turn calls dos_open. So dos_open is one
> step too "lowlevel" to be case insensitive. Other functions
> seem to call truename to preprocess filenames a bit...?

Yes indeed: the Dos* functions call truename to convert the
user-provided pathname to a "fully-qualified" name in the SDA (DOS
data). This name has no . or .., always has a drive letter, and is
always uppercased (except for UNC pathnames \\SHARE\... which don't
have a drive letter).

The dos_* functions in fatfs.c expect such canonical pathnames, just
like the redirector functions (INT2F/11xx, used by *CDEX, network file
systems, etc.) do.

Bart

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to