News for hackers. Stuff that matters.
Re:Go is still not good by andyferris on Friday August 22, 2025 @10:37AM (#44985212)
I believe the same is true on linux, which only cares about 0x2f bytes (i.e. /)
Re:Go is still not good by orthoxerox on Friday August 22, 2025 @11:32AM (#44985846)
And 0x00, if I remember correctly.
Re:Go is still not good by matt_kantor on Friday August 22, 2025 @11:28AM (#44985786)
And 0x00.
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.