not sure what the right way to deal with char8 in the rust language bindings is, mostly because i dont think i fully understand unicode https://github.com/bytecodealliance/wasi/pull/42/files/e320bcd26876cd7e747b7e170c8b6fbd91c84d0c#diff-fdd8e616291f43e093a53818d402ebf2
it seems like we can't make a guarantee that passing a single char8 by value represents a single unicode point
but, in practice, we only ever use char8 in ephemeral as the target of a pointer
its passed as a parameter, along with a length, meaning "put a valid utf-8 string at this location"
anyhow, @Dan Gohman and maybe others can chime in on the thread :)
chimed in; TLDR: treating char8
like u8
is correct
Last updated: Dec 23 2024 at 13:07 UTC