News for hackers. Stuff that matters.
Re:What does the ??!??! operator do in C? by Taniwha on Wednesday October 05, 2022 @07:14PM (#33102399)
This is because IBM 029 card punches don't support these characters right?
Re:What does the ??!??! operator do in C? by aidenn0 on Wednesday October 05, 2022 @07:54PM (#33102711)
I thought it was because of international character sets that lacked the punctuation of EBCDIC CP37 or ASCII.

[edit]

For example ISO/IEC 646 is ascii with punctuation replaced by other characters.

Re:What does the ??!??! operator do in C? by Taniwha on Wednesday October 05, 2022 @09:25PM (#33103254)
EBCDIC is very much IBM - on our old Burroughs machine we used to have to use cent signs (and something else that I forget) for square brackets and a 3-hole multipunch for ';'
Re:What does the ??!??! operator do in C? by sargstuff on Wednesday October 05, 2022 @08:09PM (#33102806)
stills leaves the issue of how to print out something that doesn't exist as a physical old style physical type face character. (way pre-dot matrix / laster printer stuff). -- aka substituting 3 characters way more informative than blank space.
Re:What does the ??!??! operator do in C? by aidenn0 on Wednesday October 05, 2022 @10:36PM (#33103669)
My (possibly wrong) understanding is that trigraphs were a late addition to the ANSI standard, which would place it in late 80s, well into the CRT terminal and dot-matrix era.
Re:What does the ??!??! operator do in C? by mananaysiempre on Friday October 07, 2022 @04:30AM (#33118706)
I don’t think national variants of (7-bit) 646 have been relevant for a decade, and on a computer for two or perhaps more, except for that one Japanese thing with ¥ instead of \ (which Windows carried forward all the way from Japanese versions of DOS). The “International Reference Version” in 646 has changed several times (generally to increase the overlap with US-ASCII, most recently to a perfect one), but I don’t think anyone ever cared about that any more than they did about X3.4 itself specifying that '<BS>e (or maybe e<BS>' ?) denotes é. I’ve seen ¤ in some Soviet manuals, but even there it was just a weird glyph printed instead of $, not an actual currency symbol. (Apparently some European layouts still have it. Is it actually used for anything?)

The need for trigraphs looks to be well and truly limited to the weird twisted world of IBM lock-in.

Re:What does the ??!??! operator do in C? by dragonwriter on Wednesday October 05, 2022 @09:17PM (#33103216)
I think the ISO/IEC 646 invariant character set is more the issue.
Re:What does the ??!??! operator do in C? by randomswede on Friday October 07, 2022 @03:31AM (#33118395)
In the "Swedish 7-bit ASCII", the C code "a || b" would look like "a öö b". The same character mappings were used in Finland, and that's why IRC count the characters {|}[\] as letters (that would typically have been displayed as "äöåÄÖÅ").

On the Compis II computer (a CP/M machine built on the 80186 CPU), there were places for {|}[\] in the character set, but they were in the top half of the 8-bit characters and not generally useful for programming.

Re:What does the ??!??! operator do in C? by wglb on Wednesday October 05, 2022 @09:00PM (#33103106)
Or an ASR33