Fix improper use of 'with-locale'.
authorMark H Weaver <mhw@netris.org>
Sat, 8 Feb 2014 17:35:35 +0000 (12:35 -0500)
committerMark H Weaver <mhw@netris.org>
Sat, 8 Feb 2014 17:40:15 +0000 (12:40 -0500)
* test-suite/guile-test (run-tests): Use 'setlocale' with check
  instead of 'with-locale'.

test-suite/guile-test

index 43ea481..4a264b4 100755 (executable)
                  (lambda ()
                    (for-each (lambda (test)
                                (display (string-append "Running " test "\n"))
-                               (with-locale "C"
-                                 (with-test-prefix test
-                                   (load (test-file-name test)))))
+                               (when (defined? 'setlocale)
+                                 (setlocale LC_ALL "C"))
+                               (with-test-prefix test
+                                 (load (test-file-name test))))
                              tests))))
             (if (opt 'coverage #f)
                 (let-values (((coverage-data _)
 \f
 ;;; Local Variables:
 ;;; mode: scheme
-;;; eval: (put 'with-locale 'scheme-indent-function 1)
 ;;; End: