Yep, this all makes sense and is what I was thinking as well. I also think you’re right about truncation being a better idea in the rendering state rather than in the bytes themselves. Either way, truncation of strings being displayed to the user requires extra care no matter what language you’re using.
As far as this being the reason most C code doesn’t handle UTF-8 though, I’m still skeptical.
As far as this being the reason most C code doesn’t handle UTF-8 though, I’m still skeptical.