This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients benjamin.peterson, dimitern, ezio.melotti, serhiy.storchaka, vstinner
Date 2019-07-16.08:46:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1563266781.2.0.471279387604.issue37584@roundup.psfhosted.org>
In-reply-to
Content
"""
On ext4 this creates 4 different files: ['\u03d4', '\u03d2\u0308', '\u03ab', '\u03a5\u0308']
On ZFS with utf8only=true (and I believe normalization=formD), only 2 files are created but each of the 4 filenames can be used to access either of the 2 files.
This is also the default behavior on Mac.

The test is already skipped on darwin (Lib/test/test_unicode_file_functions.py:120), and should be skipped for ZFS too (might depend on the exact flags used), however we weren't able to find a portable way to determine the filesystem and flags.
"""

I suggest to create a temporary directory, create the 4 files and see how many files you can using os.listdir(). If you get 4, the FS doesn't normalize anything. If you get less, it's likely that the FS normalizes names.
History
Date User Action Args
2019-07-16 08:46:21vstinnersetrecipients: + vstinner, benjamin.peterson, ezio.melotti, serhiy.storchaka, dimitern
2019-07-16 08:46:21vstinnersetmessageid: <1563266781.2.0.471279387604.issue37584@roundup.psfhosted.org>
2019-07-16 08:46:21vstinnerlinkissue37584 messages
2019-07-16 08:46:20vstinnercreate