diff --git a/Lib/posixpath.py b/Lib/posixpath.py index b01c3cb9085..128a533a213 100644 --- a/Lib/posixpath.py +++ b/Lib/posixpath.py @@ -394,7 +394,7 @@ def _resolve_link(path): path = normpath(resolved) return path -supports_unicode_filenames = False +supports_unicode_filenames = (sys.platform == 'darwin') def relpath(path, start=curdir): """Return a relative version of a path""" diff --git a/Misc/NEWS b/Misc/NEWS index 30f62c4f5ba..4c9631fa1df 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -55,8 +55,7 @@ Library - Issue #9826: OrderedDict.__repr__ can now handle self-referential values: d['x'] = d. -- Issue #767645: Set os.path.supports_unicode_filenames to True on Mac OS X - (macpath module). +- Issue #767645: Set os.path.supports_unicode_filenames to True on Mac OS X. - Issue #9837: The read() method of ZipExtFile objects (as returned by ZipFile.open()) could return more bytes than requested.