• Paul Eggert's avatar
    Fix some file-name-case-insensitive glitches · be828883
    Paul Eggert authored
    * src/fileio.c (file_name_directory): New static function,
    broken out of Ffile_name_directory.
    (file_name_case_insensitive_err, Ffile_writable_p, Fdo_auto_save):
    Use it.
    (file_name_case_insensitive_err): Rename from
    file_name_case_insensitive_p.  Accept an unencoded Lisp_Object
    rather than an encoded char *, so that platforms other than
    Cygwin and macOS need not encode the file name.  Return an int
    -1, 0, errno rather than a bool (setting errno if false),
    so that the caller can distinguish an error from false.
    All callers changed.
    (Ffile_name_case_insensitive_p): Don’t issue system calls on
    platforms other than Cygwin and macOS.  Fix bug that broke the
    attempt to move up the filesystem tree (it moved up only one
    level).
    be828883
Name
Last commit
Last update
admin Loading commit data...
build-aux Loading commit data...
doc Loading commit data...
etc Loading commit data...
leim Loading commit data...
lib Loading commit data...
lib-src Loading commit data...
lisp Loading commit data...
lwlib Loading commit data...
m4 Loading commit data...
modules Loading commit data...
msdos Loading commit data...
nextstep Loading commit data...
nt Loading commit data...
oldXMenu Loading commit data...
src Loading commit data...
test Loading commit data...
.clang-format Loading commit data...
.dir-locals.el Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
BUGS Loading commit data...
CONTRIBUTE Loading commit data...
COPYING Loading commit data...
ChangeLog.1 Loading commit data...
ChangeLog.2 Loading commit data...
ChangeLog.3 Loading commit data...
GNUmakefile Loading commit data...
INSTALL Loading commit data...
INSTALL.REPO Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
autogen.sh Loading commit data...
config.bat Loading commit data...
configure.ac Loading commit data...
make-dist Loading commit data...