aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader1996-07-02 16:25:58 +0000
committerMiles Bader1996-07-02 16:25:58 +0000
commit837ee038c5d8eb65cda7ca47c3185b348e7f7e08 (patch)
treecd53c1a689326af5cc824c33b34e524b2dfba36c
parentafcaa5036f01fd37a3b793d4a2f22a7015f2eac3 (diff)
downloademacs-837ee038c5d8eb65cda7ca47c3185b348e7f7e08.tar.gz
emacs-837ee038c5d8eb65cda7ca47c3185b348e7f7e08.zip
(DRIVE_LETTER) [MSDOS]: Lower-case drive letters.
-rw-r--r--src/fileio.c5
1 files changed, 4 insertions, 1 deletions
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 ();
102 redirector allows the six letters between 'Z' and 'a' as well. */ 102 redirector allows the six letters between 'Z' and 'a' as well. */
103#ifdef MSDOS 103#ifdef MSDOS
104#define IS_DRIVE(x) ((x) >= 'A' && (x) <= 'z') 104#define IS_DRIVE(x) ((x) >= 'A' && (x) <= 'z')
105#define DRIVE_LETTER(x) (x) 105/* Need to lower-case the drive letter, or else expanded
106 filenames will sometimes compare inequal, because
107 `expand-file-name' doesn't always down-case the drive letter. */
108#define DRIVE_LETTER(x) (tolower (x))
106#endif 109#endif
107#ifdef WINDOWSNT 110#ifdef WINDOWSNT
108#define IS_DRIVE(x) isalpha (x) 111#define IS_DRIVE(x) isalpha (x)