[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 04/13: in command line encoding test don't presume extan
From: |
Mike Gran |
Subject: |
[Guile-commits] 04/13: in command line encoding test don't presume extant UTF-8 locale |
Date: |
Thu, 21 Jan 2021 19:06:15 -0500 (EST) |
mike121 pushed a commit to branch master
in repository guile.
commit 0d80eb23e231fb8114101bae1c50e8b5672e653e
Author: Michael Gran <spk121@yahoo.com>
AuthorDate: Mon Nov 23 19:21:25 2020 -0800
in command line encoding test don't presume extant UTF-8 locale
* test-suite/standalone/test-command-line-encoding: abort if
locale is not UTF-8
---
test-suite/standalone/test-command-line-encoding | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/test-suite/standalone/test-command-line-encoding
b/test-suite/standalone/test-command-line-encoding
index 525c0ae..401011d 100755
--- a/test-suite/standalone/test-command-line-encoding
+++ b/test-suite/standalone/test-command-line-encoding
@@ -16,7 +16,10 @@ 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 master updated (1a6eaba -> 91d4d31), Mike Gran, 2021/01/21
- [Guile-commits] 02/13: for socket test, don't presume TMP is usable, Mike Gran, 2021/01/21
- [Guile-commits] 01/13: encoding test tries to delete a file that is not closed, Mike Gran, 2021/01/21
- [Guile-commits] 04/13: in command line encoding test don't presume extant UTF-8 locale,
Mike Gran <=
- [Guile-commits] 03/13: skip compile test when pause not available, Mike Gran, 2021/01/21
- [Guile-commits] 06/13: test-foreign-object-c should link libgnu, Mike Gran, 2021/01/21
- [Guile-commits] 05/13: for dynamic-link tests, mingw needs to link to msvcrt, Mike Gran, 2021/01/21
- [Guile-commits] 07/13: missing includes for list.h, Mike Gran, 2021/01/21
- [Guile-commits] 08/13: Need Guile and Windows types for the declarations posix-w32, Mike Gran, 2021/01/21
- [Guile-commits] 09/13: in null threads, don't define sigmask stub when pthread_sigmask does not exist, Mike Gran, 2021/01/21
- [Guile-commits] 11/13: standalone tests require libgnu on DLL-based platforms, Mike Gran, 2021/01/21
- [Guile-commits] 12/13: avoid a ports test when fcntl is not provided, Mike Gran, 2021/01/21
- [Guile-commits] 10/13: skip version test if git-version-gen can't compute version from git, Mike Gran, 2021/01/21
- [Guile-commits] 13/13: socket test should not throw unresolved outside of a test, Mike Gran, 2021/01/21