From: Miles Bader Date: Tue, 2 Jul 1996 16:25:58 +0000 (+0000) Subject: (DRIVE_LETTER) [MSDOS]: Lower-case drive letters. X-Git-Tag: emacs-19.34~275 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=837ee038c5d8eb65cda7ca47c3185b348e7f7e08;p=emacs.git (DRIVE_LETTER) [MSDOS]: Lower-case drive letters. --- diff --git a/src/fileio.c b/src/fileio.c index 7df85fc78a1..9801948d356 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -102,7 +102,10 @@ extern char *strerror (); redirector allows the six letters between 'Z' and 'a' as well. */ #ifdef MSDOS #define IS_DRIVE(x) ((x) >= 'A' && (x) <= 'z') -#define DRIVE_LETTER(x) (x) +/* Need to lower-case the drive letter, or else expanded + filenames will sometimes compare inequal, because + `expand-file-name' doesn't always down-case the drive letter. */ +#define DRIVE_LETTER(x) (tolower (x)) #endif #ifdef WINDOWSNT #define IS_DRIVE(x) isalpha (x)