Y
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
kevin_thibedeau
2292 days ago
A byte could be 6,7,8, or 9 bits depending on platform.
link
pwdisswordfish2
2292 days ago
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.
link