]> granicus.if.org Git - recode/commitdiff
Set DEFAULT_CHARSET to ASCII for tests
authorReuben Thomas <rrt@sc3d.org>
Tue, 30 Jan 2018 01:49:50 +0000 (01:49 +0000)
committerReuben Thomas <rrt@sc3d.org>
Tue, 30 Jan 2018 02:10:25 +0000 (02:10 +0000)
Avoid problems with implicit surfaces in some charsets.

tests/common.py

index a759aa9b2cb30a548cfa323e101eb7f975c1f77b..2d62009ef366a1b11f26c793386d2031594483aa 100644 (file)
@@ -35,6 +35,7 @@ def setup_module(module):
                      'LC_ALL', 'LC_MESSAGES', 'LC_COLLATE'):
         if variable in os.environ:
             del os.environ[variable]
+    os.environ['DEFAULT_CHARSET'] = 'ASCII'
     run.external = outer is None
     import tempfile
     run.work = tempfile.mktemp()