aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2006-06-24 07:24:42 +0000
committerEli Zaretskii2006-06-24 07:24:42 +0000
commit1a9fbabec0923ecc87ef73f7760183b4bc93dcd8 (patch)
tree1ade4d7b3264cc31849b3ec199e11b35268c4db5 /src
parent310411dbb51883163d276eb97eddfbb018305227 (diff)
downloademacs-1a9fbabec0923ecc87ef73f7760183b4bc93dcd8.tar.gz
emacs-1a9fbabec0923ecc87ef73f7760183b4bc93dcd8.zip
(directory_files_internal) [WINDOWSNT]: Find files case-insensitively.
Diffstat (limited to 'src')
-rw-r--r--src/dired.c10
1 files 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)
175#ifdef VMS 175#ifdef VMS
176 bufp = compile_pattern (match, 0, 176 bufp = compile_pattern (match, 0,
177 buffer_defaults.downcase_table, 0, 1); 177 buffer_defaults.downcase_table, 0, 1);
178#else 178#else /* !VMS */
179# ifdef WINDOWSNT
180 /* Windows users want case-insensitive wildcards. */
181 bufp = compile_pattern (match, 0,
182 buffer_defaults.case_canon_table, 0, 1);
183# else /* !WINDOWSNT */
179 bufp = compile_pattern (match, 0, Qnil, 0, 1); 184 bufp = compile_pattern (match, 0, Qnil, 0, 1);
180#endif 185# endif /* !WINDOWSNT */
186#endif /* !VMS */
181 } 187 }
182 188
183 /* Note: ENCODE_FILE and DECODE_FILE can GC because they can run 189 /* Note: ENCODE_FILE and DECODE_FILE can GC because they can run