mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 19:30:36 +02:00
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
This commit is contained in:
parent
efb37b954e
commit
0d80eb23e2
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue