test_cli: on win32, force en_US.UTF-8 rather than running locale -e

This commit is contained in:
Brian Warner 2017-04-07 11:09:57 -07:00
parent 781d791e03
commit 469c94dc4e

View File

@ -147,6 +147,8 @@ class LocaleFinder:
@inlineCallbacks
def find_utf8_locale(self):
if sys.platform == "win32":
returnValue("en_US.UTF-8")
if self._run_once:
returnValue(self._best_locale)
self._best_locale = yield self._find_utf8_locale()