]> git.eshelyaron.com Git - emacs.git/commitdiff
(file_name_completion): Run the elements of
authorEli Zaretskii <eliz@gnu.org>
Wed, 19 Dec 2001 17:14:39 +0000 (17:14 +0000)
committerEli Zaretskii <eliz@gnu.org>
Wed, 19 Dec 2001 17:14:39 +0000 (17:14 +0000)
completion-ignored-extensions through ENCODE_FILE.

src/dired.c

index d21cb65c9d3d1380cb9634cee16796ebbe05c691..4b6b94d812224a4bc8f1a570e71d8880178c6406 100644 (file)
@@ -572,6 +572,9 @@ file_name_completion (file, dirname, all_flag, ver_flag)
                    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 @@ file_name_completion (file, dirname, all_flag, ver_flag)
                  {
                    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;