]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Disable use of Unicode-mode FilePaths on non-Windows platorms. fixes ticket:2444
authorDaira Hopwood <daira@jacaranda.org>
Mon, 8 Jun 2015 12:54:36 +0000 (13:54 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Mon, 20 Jul 2015 23:20:55 +0000 (00:20 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/util/encodingutil.py

index ae54afb987d4e724ef05966c5385a7a1bf7f5503..452cdc5b20bc7e822cba607cf9e50a2aea8c86d0 100644 (file)
@@ -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
+    # <https://twistedmatrix.com/trac/ticket/7805>, we can't yet use
+    # Unicode-mode FilePaths with INotify on non-Windows platforms
+    # due to <https://twistedmatrix.com/trac/ticket/7928>.
+    use_unicode_filepath = sys.platform == "win32"
 
 _reload()