changeset 42189:37cdbf5d5a09

(file_name_completion): Run the elements of completion-ignored-extensions through ENCODE_FILE.
author Eli Zaretskii <eliz@gnu.org>
date Wed, 19 Dec 2001 17:14:39 +0000
parents 40087ecf14d6
children 5f88f0ddff2f
files src/dired.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/dired.c	Wed Dec 19 16:46:50 2001 +0000
+++ b/src/dired.c	Wed Dec 19 17:14:39 2001 +0000
@@ -572,6 +572,9 @@
 		    elt = XCAR (tem);
 		    if (!STRINGP (elt))
 		      continue;
+		    /* Need to encode ELT, since scmp compares unibyte
+		       strings only.  */
+		    elt = ENCODE_FILE (elt);
 		    elt_len = XSTRING (elt)->size - 1; /* -1 for trailing / */
 		    if (elt_len <= 0)
 		      continue;
@@ -598,6 +601,9 @@
 		  {
 		    elt = XCAR (tem);
 		    if (!STRINGP (elt)) continue;
+		    /* Need to encode ELT, since scmp compares unibyte
+		       strings only.  */
+		    elt = ENCODE_FILE (elt);
 		    skip = len - XSTRING (elt)->size;
 		    if (skip < 0) continue;