News for hackers. Stuff that matters.
Re:How UTF-8 Works by dahfizz on Wednesday February 09, 2022 @11:00AM (#30274211)
I think you're being too harsh on the C char. It is guaranteed sizeof(char) == 1, and it is guaranteed to be at least 8 bits long, i.e. long enough for any ascii character.

These requirements are perfectly good for the needs of a CHARacter type. If you need to control signed / unsigned because you want to use the char as a small integer, you can specify yourself whether it is signed or not.

In reality, where chars are used to store ASCII, the signdness of the datatype is meaningless because the highest bit is never set.

There are no comments on this comment yet.