From a74aaa9dbb4f0027d8ba128aea4b64c7c3806746 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 19 Dec 2001 17:14:39 +0000 Subject: [PATCH] (file_name_completion): Run the elements of completion-ignored-extensions through ENCODE_FILE. --- src/dired.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/dired.c b/src/dired.c index d21cb65c9d3..4b6b94d8122 100644 --- a/src/dired.c +++ b/src/dired.c @@ -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; -- 2.39.5