diff --git a/test/src/fileio-tests.el b/test/src/fileio-tests.el index 6962b684565..5ed67919a5a 100644 --- a/test/src/fileio-tests.el +++ b/test/src/fileio-tests.el @@ -30,7 +30,10 @@ (defun fileio-tests--symlink-failure () (let* ((dir (make-temp-file "fileio" t)) (link (expand-file-name "link" dir)) - (file-name-coding-system 'utf-8-hfs-unix)) + (file-name-coding-system (if (and (eq system-type 'darwin) + (featurep 'ucs-normalize)) + 'utf-8-hfs-unix + file-name-coding-system))) (unwind-protect (let (failure (char 0))