News for hackers. Stuff that matters.
Re:Mercurial’s journey to and reflections on Python 3 by lmm on Monday January 13, 2020 @07:11PM (#22040294)
UTF-16 is not "just bytes". There are sequences of bytes that are not valid UTF-16, so if you want to roundtrip bytes through UTF-16 you have to do something smarter than just pretending the byte sequence is UTF-16.
Re:Mercurial’s journey to and reflections on Python 3 by cbsmith on Monday January 13, 2020 @08:01PM (#22040687)
Sorry, I wasn't trying to imply that any permutation of bytes would work. If you encode it improperly, it's not going to work.