Created
June 6, 2017 12:06
-
-
Save Kwpolska/0c63a22f65efe9c90607a826aad99d1f to your computer and use it in GitHub Desktop.
ext4 is currently unusable with most non-English languages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://eclecticlight.co/2017/04/06/apfs-is-currently-unusable-with-most-non-english-languages/ | |
# ↑ is bullshit | |
In [1]: e = 'é' | |
In [2]: len(e) | |
Out[2]: 1 | |
In [3]: import unicodedata | |
In [4]: unicodedata.name(e) | |
Out[4]: 'LATIN SMALL LETTER E WITH ACUTE' | |
In [5]: c = 'caf' + e + '.txt' | |
In [8]: c2 = unicodedata.normalize('NFD', c) | |
In [9]: len(c) | |
Out[9]: 8 | |
In [10]: len(c2) | |
Out[10]: 9 | |
In [11]: import os | |
In [12]: os.mkdir(c) | |
In [13]: os.mkdir(c2) | |
In [14]: !ls -1 | |
bin | |
café.txt | |
café.txt | |
Desktop | |
# […omitted for brevity…] | |
In [15]: !uname -a | |
Linux kw-arch 4.11.3-1-ARCH #1 SMP PREEMPT Sun May 28 10:40:17 CEST 2017 x86_64 GNU/Linux | |
In [16]: !mount | |
/dev/sda1 on / type ext4 (rw,relatime,data=ordered) | |
# And now, for some extra fun: | |
In [19]: os.mkdir(c) | |
--------------------------------------------------------------------------- | |
FileExistsError Traceback (most recent call last) | |
<ipython-input-19-8fc16ec24216> in <module>() | |
----> 1 os.mkdir(c) | |
FileExistsError: [Errno 17] File exists: 'café.txt' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment