> Has anyone ever encountered trigraphs in the wild? (in real code, IOCCC doesn't count)
Here’s some real code which starts with trigraphs. Note it only uses the trigraph for the initial pragma to establish the EBCDIC code pages, later on it doesn’t use them. (Also, that file contains some invalid characters because it was converted from EBCDIC to ASCII using the wrong code page.)
https://github.com/mainframed/CBTTAPE/blob/main/CBT880/CBT.V...
This is a tool for storing dumps (basically mainframe equivalent of core dumps) on a networked Unix filesystem. Someone wrote it because they didn’t have enough space on their mainframe to store the dumps, but did on networked Unix storage. And then they released the source code (not clear what license)
https://raw.githubusercontent.com/mainframed/CBTTAPE/main/CB...
Never actually used it (I’ve never had cause to use mainframes professionally, I just like studying them in my spare time)