changeset 15587:515819688789

(DRIVE_LETTER) [MSDOS]: Lower-case drive letters.
author Miles Bader <miles@gnu.org>
date Tue, 02 Jul 1996 16:25:58 +0000
parents 96a050ad79e0
children e49a2eb71713
files src/fileio.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Tue Jul 02 16:25:41 1996 +0000
+++ b/src/fileio.c	Tue Jul 02 16:25:58 1996 +0000
@@ -102,7 +102,10 @@
    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)