Re:Why Does Windows Really Use Backslash as Path Separator?
by connicpu on Friday May 24, 2019 @08:44PM
(#20006437)
Only characters from the Basic Multilingual Plane. If you put an emoji in a path, for example (allowed), it will be 4 bytes.
[ Parent
| on HN ]
Re:Why Does Windows Really Use Backslash as Path Separator?
by ynik on Saturday May 25, 2019 @08:13AM
(#20008556)
Except if it's a compound emoji, which takes multiple codepoints -> more than 4 bytes.
So really the takeaway is that "character" is highly ambiguous nowadays and shouldn't be used anymore, use one of these instead:
* UTF-n code unit
* Unicode code point
* Grapheme Cluster
* Extended Grapheme Cluster
For the latter one also needs to specify the version of Unicode they're talking about, since every new compound emojis changes the definition of "Extended Grapheme Cluster".