News for hackers. Stuff that matters.
Re:Mercurial’s journey to and reflections on Python 3 by WorldMaker on Monday January 13, 2020 @08:20PM (#22040831)
Paths are Unicode strings on Windows. Yes, POSIX adds a lot more spice to the mix, but if the intent is a cross-platform tool, then Unicode is a reasonable lowest-common-denominator assumption for filenames in 2020.
Re:Mercurial’s journey to and reflections on Python 3 by Conan_Kudo on Monday January 13, 2020 @11:43PM (#22041914)
Paths are Unicode strings everywhere but Unix/Linux. And I would even argue that this is a broken aspect of POSIX today. We should make Unicode the baseline for paths in POSIX-compliant systems, but there's probably too much hand-wringing for that to ever happen.
Re:Mercurial’s journey to and reflections on Python 3 by ygra on Tuesday January 14, 2020 @06:42AM (#22043873)
Paths are sequences of 16-bit values on Windows, not necessarily valid UTF-16. It's basically the same as in POSIX, just one byte wider per character.