News for hackers. Stuff that matters.
Re:EOF is not a character by pwdisswordfish2 on Saturday March 14, 2020 @04:27AM (#22573950)
Option<u8>, given that in C ‘characters’ means bytes, not code points.
Re:EOF is not a character by kevin_thibedeau on Saturday March 14, 2020 @04:48AM (#22574023)
A byte could be 6,7,8, or 9 bits depending on platform.
Re:EOF is not a character by pwdisswordfish2 on Saturday March 14, 2020 @05:02AM (#22574070)
Yes, but Rust doesn’t support those. So on platforms where both C and Rust run, bytes will be 8 bits.

Either way, no platform defines bytes to be Unicode code points.