From 9b2a9e14ae1b1ceaab4f08de634d5cfe1d97a41d Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Tue, 9 Feb 2021 21:21:31 -0500 Subject: [PATCH] Re-add the check so we still get early failure if this ever happens --- src/allmydata/util/encodingutil.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/allmydata/util/encodingutil.py b/src/allmydata/util/encodingutil.py index 28458c9dc..483871b5d 100644 --- a/src/allmydata/util/encodingutil.py +++ b/src/allmydata/util/encodingutil.py @@ -69,6 +69,7 @@ def _reload(): global filesystem_encoding, is_unicode_platform, use_unicode_filepath filesystem_encoding = canonical_encoding(sys.getfilesystemencoding()) + check_encoding(filesystem_encoding) is_unicode_platform = PY3 or sys.platform in ["win32", "darwin"] # Despite the Unicode-mode FilePath support added to Twisted in