fix #5094 as suggested by reporter
authorChristian Grothoff <christian@grothoff.org>
Mon, 24 Jul 2017 16:56:26 +0000 (18:56 +0200)
committerChristian Grothoff <christian@grothoff.org>
Mon, 24 Jul 2017 16:56:26 +0000 (18:56 +0200)
src/fs/test_gnunet_fs_psd.py.in

index c5966d48a97b5cfe34872c141efe5a3192e31f69..87fcf1130162fc929aa62877f89467499c881c41 100755 (executable)
@@ -24,6 +24,11 @@ import subprocess
 import re
 import shutil
 
+# Force encoding to utf-8, as this test otherwise fails
+# on some systems (see #5094).
+reload(sys)
+sys.setdefaultencoding('utf8')
+
 srcdir = "../.."
 gnunet_pyexpect_dir = os.path.join (srcdir, "contrib")
 if gnunet_pyexpect_dir not in sys.path: