Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #401928
| From | Janis Papanagnou <janis_papanagnou+ng@hotmail.com> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Support of Unicode characters in various places (was Re: c needs this sign) |
| Date | 2026-09-11 02:03 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <117vgh9$1ls9s$4@dont-email.me> (permalink) |
| References | (5 earlier) <117rffa$s9ir$6@dont-email.me> <117schh$3r5qn$8@dont-email.me> <117tkl6$1o1jf$1@dont-email.me> <117v6hh$1ls9s$3@dont-email.me> <117v8ut$2bom8$2@kst.eternal-september.org> |
On 2026-09-10 23:54, Keith Thompson wrote:
> Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
> [...]
>
> It's possible that trigraphs have been used accidentally more often
> than they've been used intentionally:
>
> fprintf(stderr, "What the heck just happened??!\n");
LOL! - That's really great; you made my day! 8-)
It never occurred to me that you may stumble into such a case.
(Luckily the default settings of my compiler warns about it.)
(BTW, in my youth I had specified some detailed semantics (and
connotations) for the textual multiplication of '?' and '!' up
to a length of 3 - it had not been common to express more than
expressible with the single signs. I considered it worthy since
the expressive power of plain '!' and '?' wasn't sufficient for
the finer tones.)
>
> Even more fun (though this is deliberately contrived, not accidental)
> (??/ expands to \) :
>
> #include <stdio.h>
> int main(void) {
> // Is this a multi-line comment ??/
> if (1) puts("No, it isn't."); else
> puts("Yes, it is.");
> }
Yeah, some features just invite to do fancy things. :-)
>
> Yes, trigraphs were removed in the C23 standard. (C++ removed them
> in C++17.)
>
>>> A <iso646.h> style is better, where someone lacking a ^ key can
>>> write "xor" instead.
>>
>> I don't know what the <iso646.h> header actually is. - [...]
>
> <iso646.h> is a standard header, introduced in the 1995 amendment
> to the C90 standard. It defines 11 macros, intended for use on
> systems that use character sets that *aren't* compatible with ISO
> 646 (basically 7-bit ASCII), or at least that make it difficult
> to use certain ASCII characters. [...]
Aha. Thanks.
> [...]
>
> <iso646.h> and digraphs operate on the token level. Trigraphs are
> (were) replaced in translation phase 1, so they can be used in
> character constants, string literals, header names, comments,
> and so forth.
Interesting. Thanks.
Janis
> [...]
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
c needs this sign fir <profesor.fir@gmail.com> - 2026-09-07 15:53 +0200
Re: c needs this sign David LaRue <huey.dll@tampabay.rr.com> - 2026-09-07 19:21 +0000
Re: c needs this sign Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2026-09-08 01:10 +0200
Re: c needs this sign Dan Purgert <dan@djph.net> - 2026-09-07 23:13 +0000
Re: c needs this sign Lane W <cactus_DAC@yahoo.com> - 2026-09-07 17:26 -0600
Re: c needs this sign David Brown <david.brown@hesbynett.no> - 2026-09-08 10:40 +0200
Re: c needs this sign Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2026-09-09 10:49 +0200
Re: c needs this sign David Brown <david.brown@hesbynett.no> - 2026-09-09 13:21 +0200
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-09 13:33 +0200
Support of Unicode characters in various places (was Re: c needs this sign) Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2026-09-09 21:37 +0200
Re: Support of Unicode characters in various places (was Re: c needs this sign) David Brown <david.brown@hesbynett.no> - 2026-09-10 09:01 +0200
Re: Support of Unicode characters in various places (was Re: c needs this sign) Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2026-09-10 23:13 +0200
Re: Support of Unicode characters in various places (was Re: c needs this sign) Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2026-09-10 14:54 -0700
Re: Support of Unicode characters in various places (was Re: c needs this sign) scott@slp53.sl.home (Scott Lurndal) - 2026-09-10 22:17 +0000
Re: Support of Unicode characters in various places (was Re: c needs this sign) Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2026-09-10 15:48 -0700
Re: Support of Unicode characters in various places (was Re: c needs this sign) bart <bc@freeuk.com> - 2026-09-11 10:51 +0100
Re: Support of Unicode characters in various places (was Re: c needs this sign) David Brown <david.brown@hesbynett.no> - 2026-09-11 12:49 +0200
Re: Support of Unicode characters in various places (was Re: c needs this sign) scott@slp53.sl.home (Scott Lurndal) - 2026-09-11 16:28 +0000
Re: Support of Unicode characters in various places (was Re: c needs this sign) Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2026-09-11 02:03 +0200
Re: Support of Unicode characters in various places (was Re: c needs this sign) Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2026-09-10 17:13 -0700
Re: Support of Unicode characters in various places (was Re: c needs this sign) Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2026-09-11 02:24 +0200
Re: Support of Unicode characters in various places (was Re: c needs this sign) David Brown <david.brown@hesbynett.no> - 2026-09-11 09:42 +0200
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-09 23:59 +0200
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-10 00:04 +0200
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-10 00:16 +0200
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-10 00:30 +0200
Re: c needs this sign bart <bc@freeuk.com> - 2026-09-09 23:44 +0100
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-10 00:55 +0200
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-10 01:09 +0200
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-10 01:21 +0200
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-10 01:36 +0200
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-10 01:45 +0200
Re: c needs this sign Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-09-15 07:23 +0000
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-08 11:56 +0200
Re: c needs this sign bart <bc@freeuk.com> - 2026-09-08 11:14 +0100
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-08 12:28 +0200
Re: c needs this sign Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2026-09-08 03:54 -0700
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-08 13:13 +0200
= vs. == (again!) (Was: c needs this sign) gazelle@shell.xmission.com (Kenny McCormack) - 2026-09-08 14:39 +0000
Re: = vs. == (again!) (Was: c needs this sign) Tim Rentsch <tr.17687@z991.linuxsc.com> - 2026-10-14 23:36 -0700
Re: c needs this sign Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2026-09-09 11:13 +0200
Re: c needs this sign Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-09-09 00:29 +0000
Re: c needs this sign "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-09-10 13:42 -0700
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-08 15:12 +0200
Re: c needs this sign Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-09-08 03:33 +0000
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-08 12:02 +0200
Re: c needs this sign Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-09-09 00:27 +0000
csiph-web