News for hackers. Stuff that matters.
Re:I'm Not a Fan of Strlcpy(3) by _gabe_ on Monday July 15, 2024 @11:33AM (#40968774)
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.

There are no comments on this comment yet.