logoalt Hacker News

Aardwolfyesterday at 6:24 AM1 replyview on HN

It causes such issues as opening of files by filename not being cross platform with standard libc functions since in Windows w-string versions are required since UTF-16 chars can have 0-bytes that aren't zero terminators


Replies

codedokodeyesterday at 4:26 PM

It makes sense because UTF-16 is a sequence of uint16_t values, so both bytes must be zero, not just one.

show 1 reply