Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!munnari.oz.au!bruce!goanna!ok From: ok@goanna.cs.rmit.oz.au (Richard A. O'Keefe) Newsgroups: comp.lang.c Subject: Re: How can I de-escape my strings at run time? Message-ID: <3190@goanna.cs.rmit.oz.au> Date: 8 Jun 90 05:05:08 GMT References: <6550.26639B0A@puddle.fidonet.org> <2596@litchi.bbn.com> <1600@hulda.erbe.se> Organization: Comp Sci, RMIT, Melbourne, Australia Lines: 23 In article <1600@hulda.erbe.se>, prc@erbe.se (Robert Claeson) writes: > Glad you asked. Yes, trigraphs are used for work, especially when not in > an ASCII environment. EBCDIC, for example, doesn't have brackets and braces, Er, this turns out not to be the case. EBCDIC _has_ got curly braces. Square brackets are not quite as good; there are actually _two_ different sets of codes for the square brackets (historically connected with two different "print chains") but the C compilers I've seen accept both. > so C programmers in an EBCDIC environment are more or less forced to use > trigraphs. Whether EBCDIC has codes for these characters is one question (to which the answer is, yes it has); whether you can easily use those characters in an IBM environment (under VM/CMS for example) is another question, to which the answer is again, _yes_. I've sat by someone's side as he edited a C program (the source code of TeX, as it happens, and TeX also relies heavily on curly braces) using XEDIT, and it worked just fine. There are occasional glitches (BROWSE likes to display braces as blanks) but C and TeX work just fine in an EBCDIC environment. -- "A 7th class of programs, correct in every way, is believed to exist by a few computer scientists. However, no example could be found to include here."