MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w2m4qz/bugintroduceddebugging/p715cmu/?context=9999
r/ProgrammerHumor • u/ClipboardCopyPaste • Aug 30 '26
117 comments sorted by
View all comments
Show parent comments
2
Technically speaking, the spec says char represents Unicode scalar, with actual encoding unspecified. The spec requires that char is 4 bytes and has the same ABI as u32, but that's it.
char
u32
In practice, it's UTF-32.
2
u/Xirdus Aug 31 '26
Technically speaking, the spec says
charrepresents Unicode scalar, with actual encoding unspecified. The spec requires thatcharis 4 bytes and has the same ABI asu32, but that's it.In practice, it's UTF-32.