Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| Path | csiph.com!news.mixmin.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.m-online.net!.POSTED!not-for-mail |
|---|---|
| From | Andreas Schwab <schwab@linux-m68k.org> |
| Newsgroups | comp.std.c |
| Subject | Re: Add @ to basic character set? |
| Date | Mon, 07 Dec 2020 23:08:13 +0100 |
| Organization | Linux Private Site |
| Lines | 33 |
| Message-ID | <87o8j5jmlu.fsf@igel.home> (permalink) |
| References | <rqfeip$lrr$1@solani.org> <rqgae4$1u1$1@dont-email.me> <87pn3ngao5.fsf@nosuchdomain.example.com> <rqiik6$58p$1@dont-email.me> <rqijtd$dbr$1@dont-email.me> <ud5zH.388173$gR8.7685@fx45.iad> <87lfeafv1r.fsf@nosuchdomain.example.com> <D9dzH.185712$ql4.125078@fx39.iad> <87czzmfqb3.fsf@nosuchdomain.example.com> <4apzH.236649$xe4.230701@fx41.iad> <874kkxfk35.fsf@nosuchdomain.example.com> |
| NNTP-Posting-Host | 2001:a62:1970:3001::2 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| X-Trace | news-1.m-online.net 1607378893 31886 2001:a62:1970:3001::2 (7 Dec 2020 22:08:13 GMT) |
| X-Complaints-To | news@news-1.m-online.net |
| NNTP-Posting-Date | Mon, 7 Dec 2020 22:08:13 +0000 (UTC) |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
| X-Yow | DIDI... is that a MARTIAN name, or, are we in ISRAEL? |
| Cancel-Lock | sha1:lGZk+bqIYMPxZxjnowTozKMLS1U= |
| Xref | csiph.com comp.std.c:6186 |
Show key headers only | View raw
On Dez 07 2020, Keith Thompson wrote:
> I just used "iconv -l" to get what I presume is a list of valid CHARSET
> values (there are over 1000 of them), which led me to this:
>
> gcc -std=c11 -pedantic-errors -finput-charset=ISO646-FR -c c.c
>
> With this source file:
>
> #include <stdio.h>
> int main(void) {
> puts("$@`");
> }
>
> it produced a cascade of errors, starting with:
>
> In file included from <command-line>:31:
> /usr/include/stdc-predef.h:18:1: error: stray ‘\302’ in program
> 18 | #ifndef _STDC_PREDEF_H
> | ^
>
> It looks like something translated the # character to \302 (0xc2).
> I have no idea why. (And it didn't complain about "$@`".)
That is the first byte of the UTF-8 representation of <U00A3>, which is
what 0x23 translates to in ISO646-FR.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
Back to comp.std.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Add @ to basic character set? Philipp Klaus Krause <pkk@spth.de> - 2020-12-05 08:58 +0100
Re: Add @ to basic character set? James Kuyper <jameskuyper@alumni.caltech.edu> - 2020-12-05 10:53 -0500
Re: Add @ to basic character set? David Brown <david.brown@hesbynett.no> - 2020-12-05 17:15 +0100
Re: Add @ to basic character set? Philipp Klaus Krause <pkk@spth.de> - 2020-12-05 20:55 +0100
Re: Add @ to basic character set? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2020-12-05 14:17 -0800
Re: Add @ to basic character set? Francis Glassborow <francis.glassborow@btinternet.com> - 2020-12-06 12:25 +0000
Re: Add @ to basic character set? David Brown <david.brown@hesbynett.no> - 2020-12-06 13:47 +0100
Re: Add @ to basic character set? Richard Damon <Richard@Damon-Family.org> - 2020-12-06 08:42 -0500
Re: Add @ to basic character set? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2020-12-06 14:07 -0800
Re: Add @ to basic character set? Richard Damon <Richard@Damon-Family.org> - 2020-12-06 17:44 -0500
Re: Add @ to basic character set? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2020-12-06 15:49 -0800
Re: Add @ to basic character set? Philipp Klaus Krause <pkk@spth.de> - 2020-12-07 09:31 +0100
Re: Add @ to basic character set? Richard Damon <Richard@Damon-Family.org> - 2020-12-07 07:24 -0500
Re: Add @ to basic character set? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2020-12-07 12:16 -0800
Re: Add @ to basic character set? Richard Damon <Richard@Damon-Family.org> - 2020-12-07 15:51 -0500
Re: Add @ to basic character set? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2020-12-07 13:10 -0800
Re: Add @ to basic character set? Andreas Schwab <schwab@linux-m68k.org> - 2020-12-07 23:52 +0100
Re: Add @ to basic character set? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2020-12-07 15:27 -0800
Re: Add @ to basic character set? Richard Damon <Richard@Damon-Family.org> - 2020-12-07 18:54 -0500
Re: Add @ to basic character set? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2020-12-07 16:10 -0800
Re: Add @ to basic character set? Richard Damon <Richard@Damon-Family.org> - 2020-12-07 18:31 -0500
Re: Add @ to basic character set? Andreas Schwab <schwab@linux-m68k.org> - 2020-12-07 23:08 +0100
Re: Add @ to basic character set? Philipp Klaus Krause <pkk@spth.de> - 2020-12-07 09:30 +0100
Re: Add @ to basic character set? Philipp Klaus Krause <pkk@spth.de> - 2020-12-07 09:17 +0100
Re: Add @ to basic character set? Thomas David Rivers <rivers@dignus.com> - 2020-12-06 16:11 -0500
Re: Add @ to basic character set? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2020-12-07 12:19 -0800
Re: Add @ to basic character set? Thomas David Rivers <rivers@dignus.com> - 2020-12-07 17:02 -0500
Re: Add @ to basic character set? Philipp Klaus Krause <pkk@spth.de> - 2021-03-11 22:50 +0100
Re: Add @ to basic character set? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2021-03-11 15:40 -0800
Re: Add @ to basic character set? Philipp Klaus Krause <pkk@spth.de> - 2021-03-12 15:25 +0100
Re: Add @ to basic character set? Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-07-10 08:46 -0700
csiph-web