]> git.eshelyaron.com Git - emacs.git/commitdiff
Change recent symlink tests to just test ASCII
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 20 Aug 2017 00:57:00 +0000 (17:57 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 20 Aug 2017 00:57:45 +0000 (17:57 -0700)
* test/src/fileio-tests.el (fileio-tests--symlink-failure):
Be less ambitious about testing non-ASCII chars and encoding
errors, as there are too many portability issues.

test/src/fileio-tests.el

index 75aca7d0ab8e4f441a5d7ec0a7dddeb5c59ebeac..2ef1b553ab4d792baba1acd0ce736d8e52ea2c52 100644 (file)
   (let* ((dir (make-temp-file "fileio" t))
          (link (expand-file-name "link" dir)))
     (unwind-protect
-        (let ((failure
-               (let ((default-file-name-coding-system 'utf-8-unix))
-                 (try-char (unibyte-char-to-multibyte 128) link)))
+        (let (failure
               (char 0))
-          (while (and (not failure) (< char 300))
+          (while (and (not failure) (< char 127))
             (setq char (1+ char))
             (unless (= char ?~)
               (setq failure (try-char char link))))