aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/tools/sslutils/openssl.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/tools/sslutils/openssl.py')
-rw-r--r--tests/wpt/web-platform-tests/tools/sslutils/openssl.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/wpt/web-platform-tests/tools/sslutils/openssl.py b/tests/wpt/web-platform-tests/tools/sslutils/openssl.py
index 26ed711356d..1b636f02272 100644
--- a/tests/wpt/web-platform-tests/tools/sslutils/openssl.py
+++ b/tests/wpt/web-platform-tests/tools/sslutils/openssl.py
@@ -57,7 +57,13 @@ class OpenSSL(object):
self.cmd += ["-config", self.conf_path]
self.cmd += list(args)
- env = os.environ.copy()
+ # Copy the environment, converting to plain strings. Windows
+ # StartProcess is picky about all the keys/values being plain strings,
+ # but at least in MSYS shells, the os.environ dictionary can be mixed.
+ env = {}
+ for k, v in os.environ.iteritems():
+ env[k.encode("utf8")] = v.encode("utf8")
+
if self.base_conf_path is not None:
env["OPENSSL_CONF"] = self.base_conf_path.encode("utf8")