emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 1b8d0fe: Change recent symlink tests to just test A


From: Paul Eggert
Subject: [Emacs-diffs] master 1b8d0fe: Change recent symlink tests to just test ASCII
Date: Sat, 19 Aug 2017 20:58:02 -0400 (EDT)

branch: master
commit 1b8d0fe44a38c91f5bb7a819749ea1c1aa8a5a5f
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    Change recent symlink tests to just test ASCII
    
    * 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 | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/test/src/fileio-tests.el b/test/src/fileio-tests.el
index 75aca7d..2ef1b55 100644
--- a/test/src/fileio-tests.el
+++ b/test/src/fileio-tests.el
@@ -32,11 +32,9 @@
   (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))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]