Use `with-latin1-locale' in `regexp.test'.
authorLudovic Courtès <ludo@gnu.org>
Wed, 3 Mar 2010 23:47:21 +0000 (00:47 +0100)
committerLudovic Courtès <ludo@gnu.org>
Wed, 3 Mar 2010 23:47:21 +0000 (00:47 +0100)
commit1c242b37f0dda6e82e3cafecd6f28a7df1841d77
tree9d08924b2d27ab7771fb1760014bae0277eb18ad
parentc45de346fd40a296b6c2519af1c807df968b9e05
Use `with-latin1-locale' in `regexp.test'.

As a side effect, it fixes tests on platforms with no 8-bit locale and
where executing regexps on characters >= 128 can lead to errors such as
`cannot convert to output locale "US-ASCII": ""\x80""'.

This commit partially reverts 7583976b ("More setlocale robustness in
regexp tests").

* test-suite/tests/regexp.test (mysetlocale, set-latin-1): Remove.
  ("regexp-quote"): Use `with-latin1-locale' instead of the above
  procedures.
test-suite/tests/regexp.test