[pygobject] tests: Force UTF-8 file name encoding



commit c0bd060521cc1b481995648dbe286b7e2f9ecd80
Author: Martin Pitt <martinpitt gnome org>
Date:   Wed Jan 9 10:39:36 2013 +0100

    tests: Force UTF-8 file name encoding
    
    The test_gi.TestFilename tests fail if the environment specifies a non-UTF8
    file name encoding. Force it to "UTF-8" for the tests.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=691355

 tests/runtests.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/tests/runtests.py b/tests/runtests.py
index 9f3a7ec..07b21e1 100755
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -59,6 +59,7 @@ os.environ['G_DEBUG'] = 'fatal-warnings fatal-criticals'
 # first.
 os.environ['GSETTINGS_BACKEND'] = 'memory'
 os.environ['GSETTINGS_SCHEMA_DIR'] = tests_builddir
+os.environ['G_FILENAME_ENCODING'] = 'UTF-8'
 
 # Load tests.
 if 'TEST_NAMES' in os.environ:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]