Hacker News new | ask | show | jobs
by pwdisswordfish2 2292 days ago
Option<u8>, given that in C ‘characters’ means bytes, not code points.
1 comments

A byte could be 6,7,8, or 9 bits depending on platform.
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.