[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 05/06: test shouldn't presume UTF-8 can be installed
From: |
Mike Gran |
Subject: |
[Guile-commits] 05/06: test shouldn't presume UTF-8 can be installed |
Date: |
Wed, 18 Apr 2018 12:00:30 -0400 (EDT) |
mike121 pushed a commit to branch wip-mingw-guile-2.2
in repository guile.
commit 0863e3d2fb5063c1a190c72678a5a96571a9957e
Author: Michael Gran <address@hidden>
Date: Wed Apr 18 06:25:54 2018 -0700
test shouldn't presume UTF-8 can be installed
Add a skip to test-command-line-encoding if a UTF-8 locale wasn't installed.
* test/suite/standalone/test-command-line-encoding: modified
---
test-suite/standalone/test-command-line-encoding | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/test-suite/standalone/test-command-line-encoding
b/test-suite/standalone/test-command-line-encoding
index 525c0ae..8b1090d 100755
--- a/test-suite/standalone/test-command-line-encoding
+++ b/test-suite/standalone/test-command-line-encoding
@@ -16,7 +16,11 @@ exec guile -q -s "$0" "λ"
;; according to the locale settings; see
;; <http://lists.gnu.org/archive/html/guile-devel/2011-11/msg00026.html> for
;; details.
-(exit (string=? (cadr (program-arguments)) "λ"))
+
+(if (string-contains-ci (setlocale LC_ALL) "utf")
+ (exit (string=? (cadr (program-arguments)) "λ"))
+ ;; If we can't install a UTF-8 locale, skip the test.
+ (exit 77))
;; Local Variables:
;; mode: scheme
- [Guile-commits] branch wip-mingw-guile-2.2 updated (34131e3 -> 98f4024), Mike Gran, 2018/04/18
- [Guile-commits] 02/06: simplify reading http headers using updated %read-line, Mike Gran, 2018/04/18
- [Guile-commits] 01/06: Let read-line handle alternate line endings, Mike Gran, 2018/04/18
- [Guile-commits] 03/06: Wrong preprocessor test for include guard for sys/select.h, Mike Gran, 2018/04/18
- [Guile-commits] 05/06: test shouldn't presume UTF-8 can be installed,
Mike Gran <=
- [Guile-commits] 06/06: test-unwind leaks a file descriptor, Mike Gran, 2018/04/18
- [Guile-commits] 04/06: test-foreign-object-c needs libgnu, Mike Gran, 2018/04/18