Don't presume existence or success of setlocale in test-suite
authorMichael Gran <spk121@yahoo.com>
Fri, 28 Aug 2009 13:27:00 +0000 (06:27 -0700)
committerMichael Gran <spk121@yahoo.com>
Fri, 28 Aug 2009 13:27:00 +0000 (06:27 -0700)
commitce3ed0125fcfb9ad09da815f133a2320102d164c
treed987eee58d9d1c70c0ceb451e131d720daca0a1a
parent8736ef70acf603447cfcf697d44b8a46e8e53191
Don't presume existence or success of setlocale in test-suite

* test-suite/lib.scm (with-locale, with-locale*): new test functions

* test-suite/tests/encoding-escapes: don't fail if en_US.utf8 doesn't exist

* test-suite/tests/encoding-iso88591.test: set and restore locale, if
  possible

* test-suite/tests/encoding-iso88597.test: set and restore locale, if
  possible

* test-suite/tests/encoding-utf8.test: set and restore locale, if possible

* test-suite/tests/srfi-14.test: don't need to setlocale to Latin-1 to
  test Latin-1 since string conversion is handled at read/compile time.
  Set and restore locale, if possible.
test-suite/lib.scm
test-suite/tests/encoding-escapes.test
test-suite/tests/encoding-iso88591.test
test-suite/tests/encoding-iso88597.test
test-suite/tests/encoding-utf8.test
test-suite/tests/srfi-14.test