From f6fbc7255bcfa61c4c2d70101ef1c1c5b369baa2 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Mon, 8 Jun 2015 13:54:36 +0100 Subject: [PATCH] Disable use of Unicode-mode FilePaths on non-Windows platorms. fixes ticket:2444 Signed-off-by: Daira Hopwood --- src/allmydata/util/encodingutil.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/allmydata/util/encodingutil.py b/src/allmydata/util/encodingutil.py index ae54afb98..452cdc5b2 100644 --- a/src/allmydata/util/encodingutil.py +++ b/src/allmydata/util/encodingutil.py @@ -63,7 +63,11 @@ def _reload(): is_unicode_platform = sys.platform in ["win32", "darwin"] - use_unicode_filepath = sys.platform == "win32" or hasattr(FilePath, '_asTextPath') + # Despite the Unicode-mode FilePath support added to Twisted in + # , we can't yet use + # Unicode-mode FilePaths with INotify on non-Windows platforms + # due to . + use_unicode_filepath = sys.platform == "win32" _reload()