emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-27 62afbc5 1/4: Fix bug when visiting euc-jp-encoded directories


From: Paul Eggert
Subject: emacs-27 62afbc5 1/4: Fix bug when visiting euc-jp-encoded directories
Date: Wed, 19 Feb 2020 21:03:08 -0500 (EST)

branch: emacs-27
commit 62afbc513a4730c3352ffcee9f5cb9e1336c83e3
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    Fix bug when visiting euc-jp-encoded directories
    
    Problem reported by Ken Sasaki (Bug#39672).
    * src/fileio.c (Ffile_directory_p):
    Encode filename before giving it to file_directory_p.
    This fixes a typo introduced in
    2019-09-18T02:18:14Z!address@hidden.
---
 src/fileio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/fileio.c b/src/fileio.c
index 34934dd..482f886 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2911,7 +2911,7 @@ See `file-symlink-p' to distinguish symlinks.  */)
   if (!NILP (handler))
     return call2 (handler, Qfile_directory_p, absname);
 
-  return file_directory_p (absname) ? Qt : Qnil;
+  return file_directory_p (ENCODE_FILE (absname)) ? Qt : Qnil;
 }
 
 /* Return true if FILE is a directory or a symlink to a directory.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]