projects
/
platform
/
upstream
/
guile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efb37b9
)
in command line encoding test don't presume extant UTF-8 locale
author
Michael Gran
<spk121@yahoo.com>
Tue, 24 Nov 2020 03:21:25 +0000
(19:21 -0800)
committer
Michael Gran
<spk121@yahoo.com>
Thu, 21 Jan 2021 23:32:33 +0000
(15:32 -0800)
* test-suite/standalone/test-command-line-encoding: abort if
locale is not UTF-8
test-suite/standalone/test-command-line-encoding
patch
|
blob
|
history
diff --git
a/test-suite/standalone/test-command-line-encoding
b/test-suite/standalone/test-command-line-encoding
index 525c0aeed022e64ebf6abbe89dc82b942a8bbc91..401011debb9d8f79fec0e9339db1b1077f643126 100755
(executable)
--- 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