]> git.eshelyaron.com Git - emacs.git/commitdiff
Unbreak a fileio test on non-Mac OS X systems
authorGlenn Morris <rgm@gnu.org>
Wed, 20 Dec 2017 19:28:04 +0000 (14:28 -0500)
committerGlenn Morris <rgm@gnu.org>
Wed, 20 Dec 2017 19:28:04 +0000 (14:28 -0500)
* test/src/fileio-tests.el (fileio-tests--symlink-failure):
Don't use an undefined coding system.
; No need to merge to master, since breaking commit wasn't merged.

test/src/fileio-tests.el

index 6962b68456549a76ec0180a497acaf7713f205d6..5ed67919a5a1234f0ae0dbb52f2ba2b2043a8c62 100644 (file)
 (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))