Commit 4f6980ad authored by Eli Zaretskii's avatar Eli Zaretskii

Fix file notifications on macOS

* src/kqueue.c (Fkqueue_add_watch): Don't use encoded file
names in objects and APIs that expect decoded multibyte
strings.  (Bug#38287)
parent 80b8a609
......@@ -414,7 +414,7 @@ only when the upper directory of the renamed file is watched. */)
}
/* Open file. */
file = ENCODE_FILE (file);
Lisp_Object encoded_file = ENCODE_FILE (file);
oflags = O_NONBLOCK;
#if O_EVTONLY
oflags |= O_EVTONLY;
......@@ -426,7 +426,7 @@ only when the upper directory of the renamed file is watched. */)
#else
oflags |= O_NOFOLLOW;
#endif
fd = emacs_open (SSDATA (file), oflags, 0);
fd = emacs_open (SSDATA (encoded_file), oflags, 0);
if (fd == -1)
report_file_error ("File cannot be opened", file);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment