From 1a9fbabec0923ecc87ef73f7760183b4bc93dcd8 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 24 Jun 2006 07:24:42 +0000 Subject: [PATCH] (directory_files_internal) [WINDOWSNT]: Find files case-insensitively. --- src/dired.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/dired.c b/src/dired.c index 8c7c7fd5ac6..8b5d7851765 100644 --- a/src/dired.c +++ b/src/dired.c @@ -175,9 +175,15 @@ directory_files_internal (directory, full, match, nosort, attrs, id_format) #ifdef VMS bufp = compile_pattern (match, 0, buffer_defaults.downcase_table, 0, 1); -#else +#else /* !VMS */ +# ifdef WINDOWSNT + /* Windows users want case-insensitive wildcards. */ + bufp = compile_pattern (match, 0, + buffer_defaults.case_canon_table, 0, 1); +# else /* !WINDOWSNT */ bufp = compile_pattern (match, 0, Qnil, 0, 1); -#endif +# endif /* !WINDOWSNT */ +#endif /* !VMS */ } /* Note: ENCODE_FILE and DECODE_FILE can GC because they can run -- 2.39.2