David Jones · @drj
277 followers · 1252 posts · Server typo.social

Trigraphs in C were always hilarious. I've literally seen ø in the source code where { should be (Swedish locale), and ¥ in the source code where \ should be (Japanese code page). The very programmers who should have been affected by having no \ or { in their national character set just typed the character with the same byte code (often, same key). The compiler just read bytes and didn't give a shit what the locale was. Everyone just got on with their programming.

#trigraphs

Last updated 3 years ago

Markus Osterhoff · @sci_photos
150 followers · 2527 posts · Server troet.cafe

removes .

So now you really need modern keyboards including # and \ and fancy brackets like [{}], and we cannot use as source file encoding …

#programming #linux #posix #c #ebcdic #trigraphs #C23

Last updated 3 years ago