Email or username:

Password:

Forgot your password?
Top-level
koorogi

@luna that's very cute, but not strictly guaranteed to work because C doesn't assume ASCII compatible encodings.

3 comments
James 🌈💜

@koorogi @luna

5.2.1.3 of ISO/IEC 9899 does actually define the character set as ASCII compatible.

koorogi

@shaknais @luna I don't think so. That specifies a set of characters that must exist, that they must fit in a byte, and that characters 0-9 must be consecutive and in order. It doesn't mandate that their values match ASCII.

I believe EBCDIC would meet the requirements, and it is not ASCII compatible.

James 🌈💜

@koorogi @luna

Not just characters 0-9, but every character in the original ASCII set must exist, and in order, and be represented by a single increment, beginning with 0.

EBCDIC compatibility was dropped in C17, as the standards body couldn't find any still in use.

Go Up