Re:The History and rationale of the Python 3 Unicode model f...
by StefanKarpinski on Wednesday December 14, 2022 @02:57PM
(#33989322)
Unfortunately, neither UNIX nor Windows require path names to be valid Unicode. UNIX interprets them as “UTF-8 by convention” and Windows as “UTF-16 by convention” but both actually allow arbitrary sequences of code units. It would be nice if this didn’t actually occur, but alas, it does, and if you’re writing general purpose utilities that work with files, you don’t want them to simply crash when this happens.
[ Parent
| on HN ]
There are no comments on this comment yet.