From cbbe260a4eafef224f3bf06f599030a463f0c7c0 Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Mon, 27 Jul 2020 16:19:36 -0400 Subject: [PATCH] Windows doesn't like Unicode strings in os.environ in Python 2.7. --- src/allmydata/util/iputil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allmydata/util/iputil.py b/src/allmydata/util/iputil.py index ac5367cfc..36f4bb79b 100644 --- a/src/allmydata/util/iputil.py +++ b/src/allmydata/util/iputil.py @@ -239,7 +239,7 @@ def _synchronously_find_addresses_via_config(): def _query(path, args, regex): if not os.path.isfile(path): return [] - env = {'LANG': 'en_US.UTF-8'} + env = {native_str('LANG'): native_str('en_US.UTF-8')} TRIES = 5 for trial in range(TRIES): try: