News for hackers. Stuff that matters.
Re:Go is still not good by johncolanduoni on Friday August 22, 2025 @08:04PM (#44991538)
Windows paths are not necessarily well-formed UTF-16 (UCS-2 by some people’s definition) down to the filesystem level. If they were always well formed, you could convert to a single byte representation by straightforward Unicode re-encoding. But since they aren’t - there are choices that need to be made about what to do with malformed UTF-16 if you want to round trip them to single byte strings such that they match UTF-8 encoding if they are well formed.

There are no comments on this comment yet.