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!eggert@cs.ucla.edu.
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.