Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Matter will be damaged in direct proportion to its value.


devel / comp.lang.c / iso646.h

SubjectAuthor
* iso646.hLawrence D'Oliveiro
+- Re: iso646.hLew Pitcher
+* Re: iso646.hJames Kuyper
|`- Re: iso646.hLawrence D'Oliveiro
`* Re: iso646.hDavid Brown
 +* Re: iso646.hScott Lurndal
 |`* Re: iso646.hLawrence D'Oliveiro
 | `* Re: iso646.hKeith Thompson
 |  `* Re: iso646.hLawrence D'Oliveiro
 |   `* Re: iso646.hKeith Thompson
 |    `* Re: iso646.hLawrence D'Oliveiro
 |     `- Re: iso646.hKaz Kylheku
 `* Re: iso646.hLawrence D'Oliveiro
  +- Re: iso646.hKaz Kylheku
  +* Re: iso646.hBlue-Maned_Hawk
  |`* Re: iso646.hLawrence D'Oliveiro
  | +- Re: iso646.hKaz Kylheku
  | `* Re: iso646.hJanis Papanagnou
  |  `* Re: iso646.hLawrence D'Oliveiro
  |   +- Re: iso646.hJanis Papanagnou
  |   `- Re: iso646.hKaz Kylheku
  +- Re: iso646.hTim Rentsch
  +* Re: iso646.hJanis Papanagnou
  |`* Re: iso646.hLawrence D'Oliveiro
  | `- Re: iso646.hJanis Papanagnou
  +* Re: iso646.hDavid Brown
  |`* Re: iso646.hKaz Kylheku
  | +- Re: iso646.hbart
  | +* Re: iso646.hJanis Papanagnou
  | |+* Re: iso646.hKeith Thompson
  | ||`* Re: iso646.hLawrence D'Oliveiro
  | || +* Re: iso646.hKeith Thompson
  | || |`* Re: iso646.hDavid Brown
  | || | `- Re: iso646.hJanis Papanagnou
  | || +* Re: iso646.hLew Pitcher
  | || |`* Re: iso646.hLawrence D'Oliveiro
  | || | +- Re: iso646.hLew Pitcher
  | || | +* Re: iso646.hKaz Kylheku
  | || | |`- Re: iso646.hChris M. Thomasson
  | || | `- Re: iso646.hScott Lurndal
  | || `- Re: iso646.hKaz Kylheku
  | |`* Re: iso646.hKaz Kylheku
  | | +- Re: iso646.hJanis Papanagnou
  | | `* Re: iso646.hJanis Papanagnou
  | |  `- Re: iso646.hKaz Kylheku
  | `- Re: iso646.hDavid Brown
  +- Re: iso646.hbart
  `* Re: iso646.hMalcolm McLean
   +* Re: iso646.hLew Pitcher
   |+- Re: iso646.hKaz Kylheku
   |+* Re: iso646.hLawrence D'Oliveiro
   ||+* Re: iso646.hKeith Thompson
   |||`* Re: iso646.hLawrence D'Oliveiro
   ||| +* Re: iso646.hKeith Thompson
   ||| |+- Re: iso646.hLawrence D'Oliveiro
   ||| |`- Re: iso646.hMalcolm McLean
   ||| `- Re: iso646.hJanis Papanagnou
   ||`- Re: iso646.hJanis Papanagnou
   |`* C/CPP macro conventions (was Re: iso646.h)Janis Papanagnou
   | `* Re: C/CPP macro conventions (was Re: iso646.h)Kaz Kylheku
   |  +- Re: C/CPP macro conventions (was Re: iso646.h)Janis Papanagnou
   |  +- Re: C/CPP macro conventions (was Re: iso646.h)David Brown
   |  `- Re: C/CPP macro conventions (was Re: iso646.h)Blue-Maned_Hawk
   +* Re: iso646.hbart
   |+* Re: iso646.hScott Lurndal
   ||`* Re: iso646.hJames Kuyper
   || +* Re: iso646.hKalevi Kolttonen
   || |+* Re: iso646.hLawrence D'Oliveiro
   || ||`* Re: iso646.hKaz Kylheku
   || || +* Re: iso646.hKalevi Kolttonen
   || || |`* Re: iso646.hJanis Papanagnou
   || || | `* Re: iso646.hJames Kuyper
   || || |  +* Re: iso646.hJanis Papanagnou
   || || |  |+- Re: iso646.hJanis Papanagnou
   || || |  |+* Re: iso646.hKalevi Kolttonen
   || || |  ||`* Re: iso646.hKalevi Kolttonen
   || || |  || `* Re: iso646.hLawrence D'Oliveiro
   || || |  ||  `- Re: iso646.hDavid Brown
   || || |  |`* Re: iso646.hKeith Thompson
   || || |  | `- Re: iso646.hKalevi Kolttonen
   || || |  +- Re: iso646.hLawrence D'Oliveiro
   || || |  `* Re: iso646.hKaz Kylheku
   || || |   `* Re: iso646.hJames Kuyper
   || || |    +* Re: iso646.hDavid Brown
   || || |    |+* Re: iso646.hJanis Papanagnou
   || || |    ||`* Re: iso646.hDavid Brown
   || || |    || `- Re: iso646.hJanis Papanagnou
   || || |    |`* Re: iso646.hbart
   || || |    | `- Re: iso646.hDavid Brown
   || || |    `- Re: iso646.hTim Rentsch
   || || `- Re: iso646.hJanis Papanagnou
   || |`- Unix shell conditionals (was Re: iso646.h)Janis Papanagnou
   || `* Re: iso646.hScott Lurndal
   ||  +* Re: iso646.hKaz Kylheku
   ||  |`* Re: iso646.hbart
   ||  | `- Re: iso646.hKaz Kylheku
   ||  +- Re: iso646.hKeith Thompson
   ||  `* Re: iso646.hJames Kuyper
   ||   `- Re: iso646.hJanis Papanagnou
   |+* Python (Re: iso646.h)Kalevi Kolttonen
   ||+* Re: Python (Re: iso646.h)bart
   ||+* Re: Python (Re: iso646.h)Keith Thompson
   ||+* Re: Python (Re: iso646.h)Lawrence D'Oliveiro
   ||`- Re: Python (Re: iso646.h)Dan Cross
   |+* Re: iso646.hKeith Thompson
   |`* Re: iso646.hMalcolm McLean
   `* Re: iso646.hLawrence D'Oliveiro

Pages:1234567891011121314151617181920212223242526
Re: iso646.h

<upbfor$13jss$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32028&group=comp.lang.c#32028

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: malcolm....@gmail.com (Malcolm McLean)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Tue, 30 Jan 2024 18:39:23 +0000
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <upbfor$13jss$2@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me> <87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me> <U98uN.131477$q3F7.52171@fx45.iad>
<upb4ng$11pmg$1@dont-email.me> <iZ8uN.374647$p%Mb.202743@fx15.iad>
<upb714$12694$1@dont-email.me> <upb9bm$12ht9$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 30 Jan 2024 18:39:23 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="70f232d97e2d1b4cff25c5f882fbcac3";
logging-data="1167260"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/9kRO9hjUE1cWmhe48Aw1LlnevU4If/SU="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:1fQB1W1EmlFHcO+6zy9lTCjjCaw=
Content-Language: en-GB
In-Reply-To: <upb9bm$12ht9$1@dont-email.me>
 by: Malcolm McLean - Tue, 30 Jan 2024 18:39 UTC

On 30/01/2024 16:49, David Brown wrote:
>
> If the program can reasonably be expected to generate binary output,
> then it is the user's fault if they do this accidentally.  Examples
> shown in this thread include cat and zcat - that's what these programs do.
>
> Sometimes people make mistakes, and try to "cat" (or "type") non-text
> files.  Mistakes happen.
>
>
Elsethred [David Brown]
> I wonder if there is any *nix program older or simpler than "cat" - a
> program that simply passes its input files or the stdin to stdout.
--
Check out Basic Algorithms and my other books:
https://www.lulu.com/spotlight/bgy1mm

Re: iso646.h

<hrbuN.258110$7sbb.182913@fx16.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32029&group=comp.lang.c#32029

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!rocksolid2!news.neodome.net!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!1.us.feeder.erje.net!feeder.erje.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx16.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: iso646.h
Newsgroups: comp.lang.c
References: <uokhnk$eiln$1@dont-email.me> <up47gj$3jfg4$1@dont-email.me> <87jznu1c4v.fsf@nosuchdomain.example.com> <up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me> <upas3j$10bft$1@dont-email.me> <upb5q3$11vej$1@dont-email.me> <upb7ts$12b6n$1@dont-email.me> <upbbuh$12vui$1@dont-email.me>
Lines: 22
Message-ID: <hrbuN.258110$7sbb.182913@fx16.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Tue, 30 Jan 2024 18:43:25 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Tue, 30 Jan 2024 18:43:25 GMT
X-Received-Bytes: 1836
 by: Scott Lurndal - Tue, 30 Jan 2024 18:43 UTC

Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
>On 30/01/2024 16:25, David Brown wrote:
>> On 30/01/2024 16:49, Malcolm McLean wrote:
>>>
>>> Which is my experience for the sort of programming that I do.
>[stderr less used than stdout]
>>> Similarly there is no function "write`" that passes binary data to
>>> standard output by default.
>>
>> What would that gain?  One fewer parameters to fwrite() ?
>>
>Yes. printf() could easily have been omitted and fprintf() only
>provided.

IIRC, printf() existed even before fprintf was invented and
it was used by a whole lot of code when the C standardization
efforts began.

I suspect that most modern C libraries have printf effectively call
fprintf(stdout) internally (or at least a common function to
process the format string & varargs).

Re: iso646.h

<8sbuN.258111$7sbb.168533@fx16.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32030&group=comp.lang.c#32030

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx16.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: iso646.h
Newsgroups: comp.lang.c
References: <uokhnk$eiln$1@dont-email.me> <up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me> <U98uN.131477$q3F7.52171@fx45.iad> <upb4ng$11pmg$1@dont-email.me> <iZ8uN.374647$p%Mb.202743@fx15.iad> <upb714$12694$1@dont-email.me> <upb9bm$12ht9$1@dont-email.me> <upbepv$13i7k$1@dont-email.me>
Lines: 13
Message-ID: <8sbuN.258111$7sbb.168533@fx16.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Tue, 30 Jan 2024 18:44:20 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Tue, 30 Jan 2024 18:44:20 GMT
X-Received-Bytes: 1366
 by: Scott Lurndal - Tue, 30 Jan 2024 18:44 UTC

bart <bc@freeuk.com> writes:
>On 30/01/2024 16:49, David Brown wrote:
>
>
>> Sometimes people make mistakes, and try to "cat" (or "type") non-text
>> files.  Mistakes happen.
>
>
>If you routinely write pure binary data to stdout, then users are going
>to see garbage a lot more often.

Why do you believe that? Most users are capable of RTFM.

Re: iso646.h

<upbiaq$143k9$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32033&group=comp.lang.c#32033

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Tue, 30 Jan 2024 20:23:06 +0100
Organization: A noiseless patient Spider
Lines: 53
Message-ID: <upbiaq$143k9$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <uoqvas$1q40p$1@dont-email.me>
<uor4rf$1r10t$1@dont-email.me> <87frym7l3p.fsf@nosuchdomain.example.com>
<uot08a$278i2$1@dont-email.me> <uotmed$2ack6$2@dont-email.me>
<up17f9$313qt$4@dont-email.me> <up197h$31jct$1@dont-email.me>
<up1t0r$37v5a$4@dont-email.me> <up2mor$3bjgb$1@dont-email.me>
<up2ogd$3bs86$1@dont-email.me> <up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me> <87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me> <up8j5h$h743$3@dont-email.me>
<up8rsj$it3f$1@dont-email.me> <87sf2f6eip.fsf@nosuchdomain.example.com>
<upbf5t$13jss$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 30 Jan 2024 19:23:06 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b7db01d3dec0c79a4754767c3fdadc6e";
logging-data="1183369"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18+1AqKpRzqHoz1qMu6Jkkc1f0CHGacdiQ="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Vsdd5iEkSw0OzQaifvQ0LsMfr0w=
In-Reply-To: <upbf5t$13jss$1@dont-email.me>
Content-Language: en-GB
 by: David Brown - Tue, 30 Jan 2024 19:23 UTC

On 30/01/2024 19:29, Malcolm McLean wrote:
> On 29/01/2024 21:00, Keith Thompson wrote:
>> Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
>>> On 29/01/2024 16:18, David Brown wrote:
>>>> On 28/01/2024 20:49, Malcolm McLean wrote:
>>>>> On 28/01/2024 18:24, David Brown wrote:
>>>>> I'd expect that most general purpose programs written by Norwegians
>>>>> use an English interface, even if it isn't really expected that the
>>>>> program will find an audience beyond some users in Norway. Except
>>>>> of course for programs which in some way are about Norway.
>>>> Why?
>>>>
>>> Generally programmers are educated people and educated people use
>>> English for serious purposes. Not always of course and Norway might be
>>> an exception. But I'd expect that in a Norweigian university, for
>>> example, it would be forbidden to document a program in Norwegian or
>>> to use non-English words for identifiers. And probably the same in a
>>> large Norwegina company. I might be wrong about that and I have never
>>> visited Norway or worked for a Norweigian employer (and obviously I
>>> couldn't do so unless the policy I expect was followed).
>>
>> You assert that "educated people use English for serious purposes".
>> I don't have the experience to refute that claim, but I suspect
>> it's arrogant nonsense.  I could be wrong, of course.
>
> Everything which is at all intellectually serious is these days written
> in English. It's the new Latin. It's the language all educated people
> use to communicate with each other when discussing scientific,
> philosophical, or scholarly matters. And also technical matters to a
> large extent.
> There are a few exceptions but very few. I remember a discussion about
> whether you could get away with organising a scientific conference in
> French, in France, and the conclusion was that you could not. Even in
> France. However the French are very reluctant to concede, which is why
> the discussion took place at all.
>
> If a large Norwegian company allows programmers to document software in
> Norwegian, then it cannot employ non-Norwegian programmers to work on
> it. So I would imagine that this would be forbidden, But I've never
> actually worked for a Norwegian company and I don't actually know. David
> Brown, to be fair, does work for a Norwegian company so he might know
> better. But he asks "why?" and I gave the reason.
>

So your reasoning is "Scholars use English. Scholars are serious.
Therefore, anything serious is scholarly and consequently in English".

You do know that Monty Python's Holy Grail is entertainment, not a
education in logic?

When you are in such a deep hole, the wise thing would be to stop digging.

Re: iso646.h

<upbimd$143k9$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32034&group=comp.lang.c#32034

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.swapon.de!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Tue, 30 Jan 2024 20:29:17 +0100
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <upbimd$143k9$2@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me> <87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me> <upas3j$10bft$1@dont-email.me>
<upb5q3$11vej$1@dont-email.me> <upb7ts$12b6n$1@dont-email.me>
<9S9uN.374651$p%Mb.321185@fx15.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 30 Jan 2024 19:29:17 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b7db01d3dec0c79a4754767c3fdadc6e";
logging-data="1183369"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18w35AVYpkm6zptmxll67S2Gw1w/0fi0NQ="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:MkeOFv3Ph3vKT/ANCtcfIsHGbhE=
In-Reply-To: <9S9uN.374651$p%Mb.321185@fx15.iad>
Content-Language: en-GB
 by: David Brown - Tue, 30 Jan 2024 19:29 UTC

On 30/01/2024 17:55, Scott Lurndal wrote:
> David Brown <david.brown@hesbynett.no> writes:
>> On 30/01/2024 16:49, Malcolm McLean wrote:
>>
>>> The fact that there is no
>>> similar function for standard error suggests that wanting to pass
>>> formatted text to error is a less common requirement.
>>
>> stderr is a newer invention than stdout and stdin.
>
> c'est what?
>

According to Wikipedia (it's not infallible, but it knows better than me
here) :

"""
Standard error was added to Unix in the 1970s after several wasted
phototypesetting runs ended with error messages being typeset instead of
displayed on the user's terminal.[4]
"""

<https://web.archive.org/web/20200925010614/https://minnie.tuhs.org/pipermail/tuhs/2013-December/006113.html>

"""
One of the most amusing and unexpected consequences of phototypesetting
was the Unix standard error file (!). After phototypesetting, you had to
take a long wide strip of paper and feed it carefully into a smelly, icky
machine which eventually (several minutes later) spat out the paper with
the printing visible.

One afternoon several of us had the same experience -- typesetting
something, feeding the paper through the developer, only to find a single,
beautifully typeset line: "cannot open file foobar" The grumbles were
loud enough and in the presence of the right people, and a couple of days
later the standard error file was born...
"""

stdout and stdin were apparently available in FORTRAN in the 1950's.

But you are more likely to know things first hand, or at least second
hand, so if you can correct both me and Wikipedia, I'd be happy with that.

Re: iso646.h

<upbj9c$14443$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32035&group=comp.lang.c#32035

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!nntp.comgw.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: richard....@gmail.invalid (Richard Harnden)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Tue, 30 Jan 2024 19:39:24 +0000
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <upbj9c$14443$2@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <up2ogd$3bs86$1@dont-email.me>
<up3r9c$3hbk7$10@dont-email.me> <up47gj$3jfg4$1@dont-email.me>
<87jznu1c4v.fsf@nosuchdomain.example.com> <up4ceh$3k4b8$1@dont-email.me>
<up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me>
<up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me>
<86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me>
<86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me>
<upas3j$10bft$1@dont-email.me> <upb5q3$11vej$1@dont-email.me>
<K79uN.374649$p%Mb.218835@fx15.iad> <upb8c8$12do6$1@dont-email.me>
Reply-To: nospam.harnden@invalid.com
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 30 Jan 2024 19:39:24 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e1f654c4378eab15b4265d655bc71422";
logging-data="1183875"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/aezJ+J2Yp8Wup0ArIqEDiPb3TQRro04I="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:1y1cNHmB2YdQ4wwQoZ0ZqpXZaBA=
In-Reply-To: <upb8c8$12do6$1@dont-email.me>
Content-Language: en-GB
 by: Richard Harnden - Tue, 30 Jan 2024 19:39 UTC

On 30/01/2024 16:33, Malcolm McLean wrote:
>>
> C plays fast and loose with the char type. But you can't pass embedded
> nuls. These are so common in binary data that in  practis=ce you can't
> use %s for binary data at all.

Nobody uses printf to output binary data. fwrite(3) would be common, as
would write(2).

Maybe you could use printf("%c%c%c" ... but it'd be beyond tedious.

Re: iso646.h

<upbjle$14443$3@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32036&group=comp.lang.c#32036

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: richard....@gmail.invalid (Richard Harnden)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Tue, 30 Jan 2024 19:45:49 +0000
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <upbjle$14443$3@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me> <87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me> <U98uN.131477$q3F7.52171@fx45.iad>
<upb4ng$11pmg$1@dont-email.me> <iZ8uN.374647$p%Mb.202743@fx15.iad>
<upb714$12694$1@dont-email.me> <upb9bm$12ht9$1@dont-email.me>
<upbfor$13jss$2@dont-email.me>
Reply-To: nospam.harnden@invalid.com
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 30 Jan 2024 19:45:50 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e1f654c4378eab15b4265d655bc71422";
logging-data="1183875"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18y5jLvxukkAiXdM07Fvj1ri5AumDWdkUo="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:2R1HFWIZWqjlxt66RdrvliiarQ4=
Content-Language: en-GB
In-Reply-To: <upbfor$13jss$2@dont-email.me>
 by: Richard Harnden - Tue, 30 Jan 2024 19:45 UTC

On 30/01/2024 18:39, Malcolm McLean wrote:
> On 30/01/2024 16:49, David Brown wrote:
>>
>> If the program can reasonably be expected to generate binary output,
>> then it is the user's fault if they do this accidentally.  Examples
>> shown in this thread include cat and zcat - that's what these programs
>> do.
>>
>> Sometimes people make mistakes, and try to "cat" (or "type") non-text
>> files.  Mistakes happen.
>>
>>
> Elsethred [David Brown]
> > I wonder if there is any *nix program older or simpler than "cat" - a
> > program that simply passes its input files or the stdin to stdout.

But, nobody expects piping a binary file to a tty to "work".

Re: iso646.h

<upbjlv$14cne$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32037&group=comp.lang.c#32037

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.niel.me!news.gegeweb.eu!gegeweb.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Tue, 30 Jan 2024 20:46:05 +0100
Organization: A noiseless patient Spider
Lines: 130
Message-ID: <upbjlv$14cne$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me> <87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me> <U98uN.131477$q3F7.52171@fx45.iad>
<upb4ng$11pmg$1@dont-email.me> <iZ8uN.374647$p%Mb.202743@fx15.iad>
<upb714$12694$1@dont-email.me> <upb9bm$12ht9$1@dont-email.me>
<upbepv$13i7k$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 30 Jan 2024 19:46:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b7db01d3dec0c79a4754767c3fdadc6e";
logging-data="1192686"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18N3OSzhjRMGk16VqsiWqE6VH9Yd0b5gnQ="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ge8ClRSbYZZY55W/F+1eDk/EO2M=
In-Reply-To: <upbepv$13i7k$1@dont-email.me>
Content-Language: en-GB
 by: David Brown - Tue, 30 Jan 2024 19:46 UTC

On 30/01/2024 19:22, bart wrote:
> On 30/01/2024 16:49, David Brown wrote:
>
>>> You just want to have a go at Windows don't you?
>>>
>>> I was using CRLF line-endings in 1970s, they weren't an invention of
>>> Windows, which didn't exist until the mid-80s and didn't become
>>> popular until the mid-90s.
>>
>> CRLF line endings were the invention of printers or teletype machines.
>> It took time to move print heads from the end of one line to the
>> beginning of the next, and separating the "carriage return" and "line
>> feed" commands made timings easier.  It also let printer implementers
>> handle the two operations independently - occasionally people would
>> want to do one but not the other.
>>
>> The use of CRLF as a standard for line endings in files was, I
>> believe, from CP/M - which came after Unix and Multics, which had
>> standardised on LF line endings.  (Most OS's before that made things
>> up as they choose, rather than being "standard", or used record-based
>> files, punched cards, etc.)
>>
>> So CRLF precedes Windows quite significantly.
>>
>> (I have no idea why Macs picked CR - perhaps they just wanted to be
>> different.)
>>
>>>
>>> So, how did C deal with CRLF in all those non-Windows settings?
>>>
>>
>> The difference between "text" and "binary" streams in C is, in
>> practice, up to the implementation.  That can be the implementation of
>> the C library, or the OS functions (or DLLs/SOs) that the C library
>> calls. The norm is that you use "\n" for line endings in the C code -
>> what happens after that, for text streams, is beyond C.
>>
>> The reason C distinguishes between text and binary streams is that
>> some OS's distinguish between them.
>>
>>>
>>>> Regardless of your digression, stdout is still an unformatted
>>>> stream of bytes.   Any structure on that stream is imposed
>>>> by the -consumer- of those bytes.
>>>
>>> Of course. But it still a bad idea to write actual output that you
>>> KNOW does not represent text, to a consumer that will expect text.
>>>
>>
>> That's just a specific example of "it's a bad idea for a program to
>> behave in a way that a reasonable user would not expect".  Which is,
>> of course, true - but not a big surprise.
>>
>>> For example to a terminal window, which can happen if you forget to
>>> redirect it.
>>
>> If the program can reasonably be expected to generate binary output,
>> then it is the user's fault if they do this accidentally.  Examples
>> shown in this thread include cat and zcat - that's what these programs
>> do.
>>
>> Sometimes people make mistakes, and try to "cat" (or "type") non-text
>> files.  Mistakes happen.
>
>
> If you routinely write pure binary data to stdout, then users are going
> to see garbage a lot more often.

Or they will learn not to try to view the output of the programs.

I can see there being a problem if a program looks like it should give
text output, or sometimes gives text output, but it sometimes gives
binary output.

If you have a program like that, then it probably makes sense to have a
flag to say "output the data to stdout" and the default being writing to
a file.

So don't misunderstand me here - I'm all in favour of making programs
user-friendly, and not filling people's terminals with junk
unexpectedly. It's just that sometimes binary output on stdout is
excepted and convenient.

>
> I gave an example earlier when displaying a binary file with 'type' was
> better-behaved than with 'cat', since 'type' stops at the first 1A byte.
>

That would make "type" better behaved if you only use it for looking at
text files. "cat" is used for many different things, and stopping at
0x1a (or 0x00) would be bad behaviour for that program. They are not
the same program, and do different things (even if "cat" can also do
everything that "type" can.

> I used this in my binary formats by adding 1A after the signature, so
> you if you attempted to type it out, it wouldn't go mad. Here's another
> example:
>
>    c:\sc>type tree.scd
>    SCD
>
> (.scd is a binary file containing CAD drawing data.)
>

If that suits your needs, fine. I haven't used "type" for decades. (In
almost all cases, "more" is better. And if I have normal utilities,
"less" is better still.)

> If I again do that with 'cat' under WSL, it's goes even crazier. In
> starts to try and interpret of the output as commands (with what
> program, I don't know), with lots of Bell sounds, and I can't get back
> to the WSL prompt.
>
> It's just very, very sloppy.

No, it is very, very correct. The program is doing what it is intended
to do. You just think it should have been designed to do something
else. A "cat" program that stopped after 0x1a would be completely broken.

It's fine that you prefer "type" to "cat". I wouldn't use either of
them - I'd use "less" for viewing a file. (You'd have similar issues
with unhelpful output if you tried to use "less" on a binary file, but
only one screenful.) But I'd use "cat" for concatenating files, or for
sourcing a file to pipe into something else. I realise joining multiple
commands with pipes is not common in Windows - that's fine too. You use
what suits you best. But it makes no sense to blame one program for not
functioning like a very different program - especially when the
difference is a misfeature, as often as not.

Re: iso646.h

<87cyti61o4.fsf@nosuchdomain.example.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32038&group=comp.lang.c#32038

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Tue, 30 Jan 2024 11:50:35 -0800
Organization: None to speak of
Lines: 41
Message-ID: <87cyti61o4.fsf@nosuchdomain.example.com>
References: <uokhnk$eiln$1@dont-email.me> <up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me>
<87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me> <U98uN.131477$q3F7.52171@fx45.iad>
<upb4ng$11pmg$1@dont-email.me> <iZ8uN.374647$p%Mb.202743@fx15.iad>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="890b188af402beeba685e2c9fa345c6c";
logging-data="1194445"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Qqlh1Szkk10qS9LERxxPy"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:nWPv8UGc03J9ZYet79jyTzpWGac=
sha1:KZUF7bVvDylwsA/GtUPEYy1mWgI=
 by: Keith Thompson - Tue, 30 Jan 2024 19:50 UTC

scott@slp53.sl.home (Scott Lurndal) writes:
> bart <bc@freeuk.com> writes:
>>On 30/01/2024 15:00, Scott Lurndal wrote:
>>> Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
>>>> I must admit that it's nothing I have ever done or considered doing.
>>>>
>>>> However standard output is designed for text and not binary ouput.
>>>
>>> That was never the case. stdout is a unformatted stream of bytes
>>> associated by default with file descriptor number one in the
>>> application.
>>>
>>> Long before windows was even a gleam in gates eye.
>>>
>>
>>I don't know what Windows has to do with it.
>>
>>The difference between text and binary byte streams is something
>>invented by C, so that conversions could be done for byte '\n' on
>>systems with alternate line-endings.
>
> No, it was invented to support windows CRLF line endings.

I'm skeptical that Windows specifically was the motivation. Also, I'm
not sure what you meant by "No" above. Windows is an example of a
system with alternate line-endings.

K&R1 (1978) documents fopen() but doesn't mention the binary vs. text
distinction. ANSI C (1989) does. Windows 1.0 was released in 1985 --
but it inherited CRLF line endings directly from MS-DOS, first released
in 1981. CP/M, from which MS-DOS got its text file format, was first
released in 1974, close to the time that C first evolved from B.

VMS (now OpenVMS) was also a significant system at the time, and it had
some rather complex file formats, so the text/binary distinction was
likely important there as well.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Medtronic
void Void(void) { Void(); } /* The recursive call of the void */

Re: iso646.h

<878r46618z.fsf@nosuchdomain.example.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32039&group=comp.lang.c#32039

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Tue, 30 Jan 2024 11:59:40 -0800
Organization: None to speak of
Lines: 25
Message-ID: <878r46618z.fsf@nosuchdomain.example.com>
References: <uokhnk$eiln$1@dont-email.me> <up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me>
<87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me> <U98uN.131477$q3F7.52171@fx45.iad>
<upb4ng$11pmg$1@dont-email.me> <iZ8uN.374647$p%Mb.202743@fx15.iad>
<upb714$12694$1@dont-email.me> <upb9bm$12ht9$1@dont-email.me>
<upbfor$13jss$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="890b188af402beeba685e2c9fa345c6c";
logging-data="1194445"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/dKUx0M/OP3gcaL3vwjqu2"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:rVgJvmvK3mB7VjLaFbhTxz8K7t0=
sha1:xKOvhGrYyCRvfa/g3IpJx/2ZjE4=
 by: Keith Thompson - Tue, 30 Jan 2024 19:59 UTC

Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
> On 30/01/2024 16:49, David Brown wrote:
>> If the program can reasonably be expected to generate binary output,
>> then it is the user's fault if they do this accidentally.  Examples
>> shown in this thread include cat and zcat - that's what these
>> programs do.
>> Sometimes people make mistakes, and try to "cat" (or "type")
>> non-text files.  Mistakes happen.
>>
> Elsethred [David Brown]
>> I wonder if there is any *nix program older or simpler than "cat" -
> a > program that simply passes its input files or the stdin to
> stdout.

Terminals and terminal emulators are designed for textual data.
Writing arbitrary binary data to a terminal can cause problems.
(For that matter, writing UTF-8 text to a terminal that isn't
configured to recognize it can also cause problems.)

stdout doesn't necessarily go to a terminal.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Medtronic
void Void(void) { Void(); } /* The recursive call of the void */

Re: iso646.h

<874jeu60wu.fsf@nosuchdomain.example.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32040&group=comp.lang.c#32040

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!paganini.bofh.team!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Tue, 30 Jan 2024 12:06:57 -0800
Organization: None to speak of
Lines: 56
Message-ID: <874jeu60wu.fsf@nosuchdomain.example.com>
References: <uokhnk$eiln$1@dont-email.me>
<87frym7l3p.fsf@nosuchdomain.example.com>
<uot08a$278i2$1@dont-email.me> <uotmed$2ack6$2@dont-email.me>
<up17f9$313qt$4@dont-email.me> <up197h$31jct$1@dont-email.me>
<up1t0r$37v5a$4@dont-email.me> <up2mor$3bjgb$1@dont-email.me>
<up2ogd$3bs86$1@dont-email.me> <up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me>
<87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me> <up8j5h$h743$3@dont-email.me>
<up8rsj$it3f$1@dont-email.me>
<87sf2f6eip.fsf@nosuchdomain.example.com>
<upbf5t$13jss$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="890b188af402beeba685e2c9fa345c6c";
logging-data="1194445"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/L+GyzXevowXt23ob0yWMr"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:8kDpc8rz5L9zhnJdqsJ3s+zNI0U=
sha1:nkMbhGHeKdd5liGT7G6shYR0rOA=
 by: Keith Thompson - Tue, 30 Jan 2024 20:06 UTC

Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
> On 29/01/2024 21:00, Keith Thompson wrote:
>> Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
>>> On 29/01/2024 16:18, David Brown wrote:
>>>> On 28/01/2024 20:49, Malcolm McLean wrote:
>>>>> On 28/01/2024 18:24, David Brown wrote:
>>>>> I'd expect that most general purpose programs written by Norwegians
>>>>> use an English interface, even if it isn't really expected that the
>>>>> program will find an audience beyond some users in Norway. Except
>>>>> of course for programs which in some way are about Norway.
>>>> Why?
>>>>
>>> Generally programmers are educated people and educated people use
>>> English for serious purposes. Not always of course and Norway might be
>>> an exception. But I'd expect that in a Norweigian university, for
>>> example, it would be forbidden to document a program in Norwegian or
>>> to use non-English words for identifiers. And probably the same in a
>>> large Norwegina company. I might be wrong about that and I have never
>>> visited Norway or worked for a Norweigian employer (and obviously I
>>> couldn't do so unless the policy I expect was followed).
>> You assert that "educated people use English for serious purposes".
>> I don't have the experience to refute that claim, but I suspect
>> it's arrogant nonsense. I could be wrong, of course.
>
> Everything which is at all intellectually serious is these days
> written in English. It's the new Latin. It's the language all educated
> people use to communicate with each other when discussing scientific,
> philosophical, or scholarly matters. And also technical matters to a
> large extent.

Even if that's true, you assertion was about user interfaces.

Are you under the impression that mobile phones show their messages only
in English because all their users are scholars?

Are you aware of the existence of medical devices (my current $DAYJOB)
that can be configured to display messages in any of a number of
languages?

[...]

> If a large Norwegian company allows programmers to document software
> in Norwegian, then it cannot employ non-Norwegian programmers to work
> on it. So I would imagine that this would be forbidden, But I've never
> actually worked for a Norwegian company and I don't actually
> know. David Brown, to be fair, does work for a Norwegian company so he
> might know better. But he asks "why?" and I gave the reason.

Correct, you don't actually know. Why doesn't that prevent you from
making assertions rather than asking questions, so that you can learn
something from people who know more than you do?

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Medtronic
void Void(void) { Void(); } /* The recursive call of the void */

Re: iso646.h

<upblug$14p92$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32041&group=comp.lang.c#32041

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (bart)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Tue, 30 Jan 2024 20:24:49 +0000
Organization: A noiseless patient Spider
Lines: 83
Message-ID: <upblug$14p92$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me> <87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me> <upas3j$10bft$1@dont-email.me>
<upb5q3$11vej$1@dont-email.me> <upb7ts$12b6n$1@dont-email.me>
<9S9uN.374651$p%Mb.321185@fx15.iad> <upbimd$143k9$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 30 Jan 2024 20:24:49 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1d628cc0776738c82c53ff623f6818a6";
logging-data="1205538"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/YlvzOtRs6WnJp75R16kkGDjtB9Qn6Jes="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:UW/Ty1T2DP1LCGGqhoN3sTrMBno=
Content-Language: en-GB
In-Reply-To: <upbimd$143k9$2@dont-email.me>
 by: bart - Tue, 30 Jan 2024 20:24 UTC

On 30/01/2024 19:29, David Brown wrote:
> On 30/01/2024 17:55, Scott Lurndal wrote:
>> David Brown <david.brown@hesbynett.no> writes:
>>> On 30/01/2024 16:49, Malcolm McLean wrote:
>>>
>>>> The fact that there is no
>>>> similar function for standard error suggests that wanting to pass
>>>> formatted text to error is a less common requirement.
>>>
>>> stderr is a newer invention than stdout and stdin.
>>
>> c'est what?
>>
>
> According to Wikipedia (it's not infallible, but it knows better than me
> here) :
>
> """
> Standard error was added to Unix in the 1970s after several wasted
> phototypesetting runs ended with error messages being typeset instead of
> displayed on the user's terminal.[4]
> """
>
> <https://web.archive.org/web/20200925010614/https://minnie.tuhs.org/pipermail/tuhs/2013-December/006113.html>
>
> """
> One of the most amusing and unexpected consequences of phototypesetting
> was the Unix standard error file (!).   After phototypesetting, you had to
> take a long wide strip of paper and feed it carefully into a smelly, icky
> machine which eventually (several minutes later) spat out the paper with
> the printing visible.
>
> One afternoon several of us had the same experience -- typesetting
> something, feeding the paper through the developer, only to find a single,
> beautifully typeset line: "cannot open file foobar"   The grumbles were
> loud enough and in the presence of the right people, and a couple of days
> later the standard error file was born...
> """
>

That explains a lot. It is ludicrous to just blindly send data to
stdout, in cases like this. Send it to a file, where it can be neatly
self-contained, and then send that to the device. Or least use a device
handle like 'stdprinter'.

Just something that will segregate output that is intended for the
terminal, from data output.

Clearly every process in Unix was some sort of batch program.

With an interactive application, you have an on-going dialog with the
user. But if EVERYTHING is sent to stdout, how on earth do you switch
between output for the user, and output for the whatever needs to have
been setup to hang onto stdout?

Don't tell me that you need to use stderr for the interactive dialog and
stdout for data!

It just got things wrong from the start. It doesn't look like much as
changed.

>
> stdout and stdin were apparently available in FORTRAN in the 1950's.

I spent a year writing FORTRAN on mainframes and minicomputers. I don't
remember anything like that.

And my coding involved outputting to a range of imaging peripherals
including vector graphics terminals (Tektronix).

Meanwhile other software of mine since then could output to an endless
variety of peripherals, often several kinds within the same program.

I don't recall any nonsense where you just wrote necessary data to the
equivalent of STDOUT, and hoping something at the other end would do
something sensible with it.

For a start, that would be the only thing the program could do: dump
stuff to STDOUT then terminate.

But hey, if Unix does it then it must be right!

Re: iso646.h

<20240130125206.480@kylheku.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32046&group=comp.lang.c#32046

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 433-929-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Tue, 30 Jan 2024 20:54:32 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <20240130125206.480@kylheku.com>
References: <uokhnk$eiln$1@dont-email.me> <up47gj$3jfg4$1@dont-email.me>
<87jznu1c4v.fsf@nosuchdomain.example.com> <up4ceh$3k4b8$1@dont-email.me>
<up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me>
<up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me>
<86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me>
<86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me>
<upas3j$10bft$1@dont-email.me> <upb5q3$11vej$1@dont-email.me>
<upb7ts$12b6n$1@dont-email.me> <upbbuh$12vui$1@dont-email.me>
<hrbuN.258110$7sbb.182913@fx16.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 30 Jan 2024 20:54:32 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="aa3290a72f6c22d61c05503829253c16";
logging-data="1214752"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ZXFuZyXPNWFxKBlfnaa8Zg8ImVUdeuMs="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:D2UcqfKbmEU4gb/Lf6lY9mblCH8=
 by: Kaz Kylheku - Tue, 30 Jan 2024 20:54 UTC

On 2024-01-30, Scott Lurndal <scott@slp53.sl.home> wrote:
> Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
>>On 30/01/2024 16:25, David Brown wrote:
>>> On 30/01/2024 16:49, Malcolm McLean wrote:
>>>>
>>>> Which is my experience for the sort of programming that I do.
>>[stderr less used than stdout]
>>>> Similarly there is no function "write`" that passes binary data to
>>>> standard output by default.
>>>
>>> What would that gain?  One fewer parameters to fwrite() ?
>>>
>>Yes. printf() could easily have been omitted and fprintf() only
>>provided.
>
> IIRC, printf() existed even before fprintf was invented and
> it was used by a whole lot of code when the C standardization
> efforts began.

Well, actually, printf and fprintf were conflated into one
function in early Unix!

If the first argument of printf was a number instead of a
format string, then it indicated the device to send output
to (it was an index in the table of FILE structures or something).
In that case, the second argument was the format string:

printf("hello, %s\n", "world!"); /* print on standard output */

printf(1, "hello, %s\n", "world!"); /* likewise */

printf(2, "hello, %s\n", "world!"); /* likewise */

Or something like that; I may have some detail wrong.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Re: iso646.h

<87le864k47.fsf@nosuchdomain.example.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32047&group=comp.lang.c#32047

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!nntp.comgw.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Tue, 30 Jan 2024 12:55:04 -0800
Organization: None to speak of
Lines: 13
Message-ID: <87le864k47.fsf@nosuchdomain.example.com>
References: <uokhnk$eiln$1@dont-email.me> <up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me>
<87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me> <upas3j$10bft$1@dont-email.me>
<upb5q3$11vej$1@dont-email.me> <upb7ts$12b6n$1@dont-email.me>
<9S9uN.374651$p%Mb.321185@fx15.iad> <upbimd$143k9$2@dont-email.me>
<upblug$14p92$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="890b188af402beeba685e2c9fa345c6c";
logging-data="1206485"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18mw11ba4asXl7zRFXqtXKe"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:Qsr8sJ44LXv6qscK+xgg3UNfb20=
sha1:+AVyIOie21L5OEzI0MdzB2fKhLg=
 by: Keith Thompson - Tue, 30 Jan 2024 20:55 UTC

bart <bc@freeuk.com> writes:
[...]
> But hey, if Unix does it then it must be right!

As usual, you mistake explanations of how Unix works for assertions that
the way Unix works is the best of all possible worlds.

Can't you just accept explanations as explanations?

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Medtronic
void Void(void) { Void(); } /* The recursive call of the void */

Re: iso646.h

<upbo9p$1573c$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32048&group=comp.lang.c#32048

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: malcolm....@gmail.com (Malcolm McLean)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Tue, 30 Jan 2024 21:04:56 +0000
Organization: A noiseless patient Spider
Lines: 85
Message-ID: <upbo9p$1573c$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me>
<87frym7l3p.fsf@nosuchdomain.example.com> <uot08a$278i2$1@dont-email.me>
<uotmed$2ack6$2@dont-email.me> <up17f9$313qt$4@dont-email.me>
<up197h$31jct$1@dont-email.me> <up1t0r$37v5a$4@dont-email.me>
<up2mor$3bjgb$1@dont-email.me> <up2ogd$3bs86$1@dont-email.me>
<up3r9c$3hbk7$10@dont-email.me> <up47gj$3jfg4$1@dont-email.me>
<87jznu1c4v.fsf@nosuchdomain.example.com> <up4ceh$3k4b8$1@dont-email.me>
<up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me>
<up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me>
<up8j5h$h743$3@dont-email.me> <up8rsj$it3f$1@dont-email.me>
<87sf2f6eip.fsf@nosuchdomain.example.com> <upbf5t$13jss$1@dont-email.me>
<874jeu60wu.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 30 Jan 2024 21:04:57 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="70f232d97e2d1b4cff25c5f882fbcac3";
logging-data="1219692"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/M+4hR2JF40LFTD6qlSh/H3FBfvsihlB8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:oReh/6dmwRn2Gt+NBGldKTw1Kf8=
Content-Language: en-GB
In-Reply-To: <874jeu60wu.fsf@nosuchdomain.example.com>
 by: Malcolm McLean - Tue, 30 Jan 2024 21:04 UTC

On 30/01/2024 20:06, Keith Thompson wrote:
> Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
>> On 29/01/2024 21:00, Keith Thompson wrote:
>>> Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
>>>> On 29/01/2024 16:18, David Brown wrote:
>>>>> On 28/01/2024 20:49, Malcolm McLean wrote:
>>>>>> On 28/01/2024 18:24, David Brown wrote:
>>>>>> I'd expect that most general purpose programs written by Norwegians
>>>>>> use an English interface, even if it isn't really expected that the
>>>>>> program will find an audience beyond some users in Norway. Except
>>>>>> of course for programs which in some way are about Norway.
>>>>> Why?
>>>>>
>>>> Generally programmers are educated people and educated people use
>>>> English for serious purposes. Not always of course and Norway might be
>>>> an exception. But I'd expect that in a Norweigian university, for
>>>> example, it would be forbidden to document a program in Norwegian or
>>>> to use non-English words for identifiers. And probably the same in a
>>>> large Norwegina company. I might be wrong about that and I have never
>>>> visited Norway or worked for a Norweigian employer (and obviously I
>>>> couldn't do so unless the policy I expect was followed).
>>> You assert that "educated people use English for serious purposes".
>>> I don't have the experience to refute that claim, but I suspect
>>> it's arrogant nonsense. I could be wrong, of course.
>>
>> Everything which is at all intellectually serious is these days
>> written in English. It's the new Latin. It's the language all educated
>> people use to communicate with each other when discussing scientific,
>> philosophical, or scholarly matters. And also technical matters to a
>> large extent.
>
> Even if that's true, you assertion was about user interfaces.
>
> Are you under the impression that mobile phones show their messages only
> in English because all their users are scholars?
>
Things tend to trickle down.
Teenagers from non-English speaking countries hum along to pop songs in
English. And whilst programmers aren't usually scholars, if they are C
programmers they will use a programming language with keywords based on
English.
And you will likley get quite a bit of English coming through the mobile
phone.
Linus Torvald's native language is Finnish, for example. But git was
released in English. There might be Finnish language bindings for it
now, but I'm pretty sure not in the original version. Similarly Bjarne
Strousup is Swedish, but C++ uses keywords like "class" and "friend",
not the Swedish terms.
Now I think that would rub off on Norwegian programmers. It would be
surprising of it did not.
> Are you aware of the existence of medical devices (my current $DAYJOB)
> that can be configured to display messages in any of a number of
> languages?
>
Some software is internationalised. But it takes quite a lot of
resources to translate software. With medical device software the
software is likely so expensive to develop anyway because of all the
safety critical portions that the cost is tolerable. Our software has
purely English user interfaces. It was something we looked at, but it
would have been expensive and made the code base harder to manange, and
the users said that the benefit to them was marginal as they spoke
enough English to understand a few simple GUI labels. I think our
experience is more typical, but some people will no doubt make out that
it is narrow and parochial.
>
> [...]
>
> Correct, you don't actually know. Why doesn't that prevent you from
> making assertions rather than asking questions, so that you can learn
> something from people who know more than you do?
>
I'm a qualified scientist, amongst other things. In science, the things
that you know are usually either quite basic and covered in the first
degree, or they are not terribly interesting. What matters is what you
don't actually know, but believe to be the case, based on sound evidence
and reasoning. And I believe it to be the case that English is used very
widely in Norway. And in fact, if David Brown, who is in a position to
know, asserts this not to be the case, I'd put it down to his
contentious nature and tend to dismiss it. Now of course I could have
misled myself. But I doubt it.

--
Check out Basic Algorithms and my other books:
https://www.lulu.com/spotlight/bgy1mm

Re: iso646.h

<upbovh$157n2$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32051&group=comp.lang.c#32051

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jameskuy...@alumni.caltech.edu (James Kuyper)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Tue, 30 Jan 2024 16:16:32 -0500
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <upbovh$157n2$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me> <87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me> <U98uN.131477$q3F7.52171@fx45.iad>
<upb4ng$11pmg$1@dont-email.me> <iZ8uN.374647$p%Mb.202743@fx15.iad>
<upb714$12694$1@dont-email.me> <upb9bm$12ht9$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 30 Jan 2024 21:16:33 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="5a6528fa7efbd0ae4b6280a3920882b3";
logging-data="1220322"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/m3QQbx7ZxemNZUr1J4U2Gu0KILANMwIc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:lYA6+aWNcRJrS2HGATbKSU7nGnc=
In-Reply-To: <upb9bm$12ht9$1@dont-email.me>
Content-Language: en-US
 by: James Kuyper - Tue, 30 Jan 2024 21:16 UTC

On 1/30/24 11:49, David Brown wrote:
....
> If the program can reasonably be expected to generate binary output,
> then it is the user's fault if they do this accidentally. Examples
> shown in this thread include cat and zcat - that's what these programs do.

? There's no problem using cat to concatenate binary files. I've used
'split' to split binary files into smaller pieces, and then used 'cat'
to recombine them, and it worked fine. I don't remember why, but I had
to transfer the files from one place to another by a method that imposed
an upper limit on the size of individual files.

Re: iso646.h

<93euN.94319$STLe.7747@fx34.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32053&group=comp.lang.c#32053

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!paganini.bofh.team!3.eu.feeder.erje.net!feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx34.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: iso646.h
Newsgroups: comp.lang.c
References: <uokhnk$eiln$1@dont-email.me> <up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me> <upas3j$10bft$1@dont-email.me> <upb5q3$11vej$1@dont-email.me> <upb7ts$12b6n$1@dont-email.me> <9S9uN.374651$p%Mb.321185@fx15.iad> <upbimd$143k9$2@dont-email.me>
Lines: 31
Message-ID: <93euN.94319$STLe.7747@fx34.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Tue, 30 Jan 2024 21:42:29 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Tue, 30 Jan 2024 21:42:29 GMT
X-Received-Bytes: 1991
 by: Scott Lurndal - Tue, 30 Jan 2024 21:42 UTC

David Brown <david.brown@hesbynett.no> writes:
>On 30/01/2024 17:55, Scott Lurndal wrote:
>> David Brown <david.brown@hesbynett.no> writes:
>>> On 30/01/2024 16:49, Malcolm McLean wrote:
>>>
>>>> The fact that there is no
>>>> similar function for standard error suggests that wanting to pass
>>>> formatted text to error is a less common requirement.
>>>
>>> stderr is a newer invention than stdout and stdin.
>>
>> c'est what?
>>
>
>According to Wikipedia (it's not infallible, but it knows better than me
>here) :
>
>"""
>Standard error was added to Unix in the 1970s after several wasted
>phototypesetting runs ended with error messages being typeset instead of
>displayed on the user's terminal.[4]

Ok. I had incorrectly assumed you were referring to the late 80's
when C standardization was underway.

It was certainly there by unix v6 which was the first version I
used in the late 70's.

Re: iso646.h

<upcnlu$1db7v$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32063&group=comp.lang.c#32063

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!nntp.comgw.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 31 Jan 2024 06:00:30 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <upcnlu$1db7v$2@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me> <87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me> <U98uN.131477$q3F7.52171@fx45.iad>
<upb4ng$11pmg$1@dont-email.me> <iZ8uN.374647$p%Mb.202743@fx15.iad>
<upb714$12694$1@dont-email.me> <upb9bm$12ht9$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 31 Jan 2024 06:00:30 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6d6e39d72828d64573e6503e5cd44852";
logging-data="1486079"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+UDAQepGnJ3GxF1H7eTDnB"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:KCS3GhIqWOrflciBAeAiuIifnGs=
 by: Lawrence D'Oliv - Wed, 31 Jan 2024 06:00 UTC

On Tue, 30 Jan 2024 17:49:57 +0100, David Brown wrote:

> The use of CRLF as a standard for line endings in files was, I believe,
> from CP/M ...

Which I think copied it from DEC minicomputer systems.

Fun fact: on some of those DEC systems (which I used when they were still
being made), you could end a line with CR-LF, or LF-CR-NUL.

What was the NUL for? Padding. Why did it need padding? (This was before
CRT terminals.)

Re: iso646.h

<upcnq4$1db7v$3@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32064&group=comp.lang.c#32064

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 31 Jan 2024 06:02:45 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <upcnq4$1db7v$3@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me> <87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me> <U98uN.131477$q3F7.52171@fx45.iad>
<upb4ng$11pmg$1@dont-email.me> <iZ8uN.374647$p%Mb.202743@fx15.iad>
<87cyti61o4.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 31 Jan 2024 06:02:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6d6e39d72828d64573e6503e5cd44852";
logging-data="1486079"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+vZTkk0Uaio48L81v5EcLw"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:wZtDPHZDvaAc8p710AI0FfLFSho=
 by: Lawrence D'Oliv - Wed, 31 Jan 2024 06:02 UTC

On Tue, 30 Jan 2024 11:50:35 -0800, Keith Thompson wrote:

> VMS (now OpenVMS) was also a significant system at the time, and it had
> some rather complex file formats ...

It relied on extra file metadata called “record attributes” in order to
make sense of the file format. It was quite common to transfer files from
other systems, and have them not be readable until you had set appropriate
record attributes on them. Picky, picky, I know.

Apparently Linus Torvalds used VMS for a while, and hated it.

Re: iso646.h

<upcnro$1db7v$4@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32065&group=comp.lang.c#32065

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 31 Jan 2024 06:03:37 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <upcnro$1db7v$4@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <up1t0r$37v5a$4@dont-email.me>
<up2mor$3bjgb$1@dont-email.me> <up2ogd$3bs86$1@dont-email.me>
<up3r9c$3hbk7$10@dont-email.me> <up47gj$3jfg4$1@dont-email.me>
<87jznu1c4v.fsf@nosuchdomain.example.com> <up4ceh$3k4b8$1@dont-email.me>
<up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me>
<up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me>
<86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me>
<86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me>
<U98uN.131477$q3F7.52171@fx45.iad> <upb44u$11meh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 31 Jan 2024 06:03:37 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6d6e39d72828d64573e6503e5cd44852";
logging-data="1486079"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/R1aEdUScgCj2KiKkr1FOp"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:F++bM6M8bAyDqjwuvpSsxiOV4nE=
 by: Lawrence D'Oliv - Wed, 31 Jan 2024 06:03 UTC

On Tue, 30 Jan 2024 15:21:01 +0000, Malcolm McLean wrote:

> Most systems run Windows where the model of piping from standard output
> to standard input of the next program is much less used than in Unix,
> this is true. That sometimes generates a feeling of superiority amongst
> those who use the less common, often more expensive Unix systems. It's
> very silly, but that's how people think.

Also we can do select/poll on pipes on *nix systems, you can’t on Windows.

Re: iso646.h

<upcntm$1db7v$5@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32066&group=comp.lang.c#32066

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 31 Jan 2024 06:04:38 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 5
Message-ID: <upcntm$1db7v$5@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me>
<87frym7l3p.fsf@nosuchdomain.example.com> <uot08a$278i2$1@dont-email.me>
<uotmed$2ack6$2@dont-email.me> <up17f9$313qt$4@dont-email.me>
<up197h$31jct$1@dont-email.me> <up1t0r$37v5a$4@dont-email.me>
<up2mor$3bjgb$1@dont-email.me> <up2ogd$3bs86$1@dont-email.me>
<up3r9c$3hbk7$10@dont-email.me> <up47gj$3jfg4$1@dont-email.me>
<87jznu1c4v.fsf@nosuchdomain.example.com> <up4ceh$3k4b8$1@dont-email.me>
<up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me>
<up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me>
<up8j5h$h743$3@dont-email.me> <up8rsj$it3f$1@dont-email.me>
<87sf2f6eip.fsf@nosuchdomain.example.com> <upbf5t$13jss$1@dont-email.me>
<874jeu60wu.fsf@nosuchdomain.example.com> <upbo9p$1573c$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 31 Jan 2024 06:04:38 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6d6e39d72828d64573e6503e5cd44852";
logging-data="1486079"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18sRFhtHkKduJyqcNhZq9gB"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:4RSY3l0qDFlvH9KjUBf84tM1oxc=
 by: Lawrence D'Oliv - Wed, 31 Jan 2024 06:04 UTC

On Tue, 30 Jan 2024 21:04:56 +0000, Malcolm McLean wrote:

> Linus Torvald's native language is Finnish, for example.

No, it would be Swedish. He’s an ethnic Swede, from Finland.

Re: iso646.h

<upco0m$1db7v$6@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32067&group=comp.lang.c#32067

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 31 Jan 2024 06:06:14 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <upco0m$1db7v$6@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <uoqvas$1q40p$1@dont-email.me>
<uor4rf$1r10t$1@dont-email.me> <87frym7l3p.fsf@nosuchdomain.example.com>
<uot08a$278i2$1@dont-email.me> <uotmed$2ack6$2@dont-email.me>
<up17f9$313qt$4@dont-email.me> <up197h$31jct$1@dont-email.me>
<up1t0r$37v5a$4@dont-email.me> <up2mor$3bjgb$1@dont-email.me>
<up2ogd$3bs86$1@dont-email.me> <up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me> <87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 31 Jan 2024 06:06:14 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6d6e39d72828d64573e6503e5cd44852";
logging-data="1486079"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19RGH04wNPSSieuT2sjn4Le"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:WHvStGRMfBMMfoWr1Jh9UsEb3R0=
 by: Lawrence D'Oliv - Wed, 31 Jan 2024 06:06 UTC

On Tue, 30 Jan 2024 09:13:07 +0000, Malcolm McLean wrote:

> However standard output is designed for text and not binary ouput.
> Whilst there is a "printf()" which operates on standard output by
> default, there are no functions which write binary data to standard
> outout by default, for example.

putchar(2).

Re: iso646.h

<upco3j$1db7v$7@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32068&group=comp.lang.c#32068

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 31 Jan 2024 06:07:47 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <upco3j$1db7v$7@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <uoqvas$1q40p$1@dont-email.me>
<uor4rf$1r10t$1@dont-email.me> <87frym7l3p.fsf@nosuchdomain.example.com>
<uot08a$278i2$1@dont-email.me> <uotmed$2ack6$2@dont-email.me>
<up17f9$313qt$4@dont-email.me> <up197h$31jct$1@dont-email.me>
<up1t0r$37v5a$4@dont-email.me> <up2mor$3bjgb$1@dont-email.me>
<up2ogd$3bs86$1@dont-email.me> <up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me> <87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me> <upas3j$10bft$1@dont-email.me>
<upb5q3$11vej$1@dont-email.me> <upb7ts$12b6n$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 31 Jan 2024 06:07:47 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6d6e39d72828d64573e6503e5cd44852";
logging-data="1486079"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18UOax+5F0ktiTqCzpdLOwk"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:Tnhbq2IGrhPoZnEb9EKrUxSGdLI=
 by: Lawrence D'Oliv - Wed, 31 Jan 2024 06:07 UTC

On Tue, 30 Jan 2024 17:25:31 +0100, David Brown wrote:

> Mixing binary data with formatted text data is very unlikely to be
> useful.

PDF does exactly that. To the point where the spec suggests putting some
random unprintable bytes up front, to distract format sniffers from
thinking they’re looking at a text file.

Re: iso646.h

<upco9g$1db7v$8@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32069&group=comp.lang.c#32069

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 31 Jan 2024 06:10:56 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <upco9g$1db7v$8@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me> <87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me> <upas3j$10bft$1@dont-email.me>
<upb5q3$11vej$1@dont-email.me> <upb7ts$12b6n$1@dont-email.me>
<9S9uN.374651$p%Mb.321185@fx15.iad> <upbimd$143k9$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 31 Jan 2024 06:10:56 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6d6e39d72828d64573e6503e5cd44852";
logging-data="1486079"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18p20qVJpUGchvapTGoNWhO"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:tdI0WpwS8IZi6w60zUJcOpj+jZY=
 by: Lawrence D'Oliv - Wed, 31 Jan 2024 06:10 UTC

On Tue, 30 Jan 2024 20:29:17 +0100, David Brown wrote:

> stdout and stdin were apparently available in FORTRAN in the 1950's.

There was a convention that channel 5 was the card reader, and 6 was the
line printer.

When interactive systems came along later, this became channel 5 for
keyboard input, and 6 for terminal output.

What happened to channels 1, 2, 3 & 4? Don’t know.

Re: iso646.h

<upcobm$1db7v$9@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32070&group=comp.lang.c#32070

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 31 Jan 2024 06:12:07 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 5
Message-ID: <upcobm$1db7v$9@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <up2ogd$3bs86$1@dont-email.me>
<up3r9c$3hbk7$10@dont-email.me> <up47gj$3jfg4$1@dont-email.me>
<87jznu1c4v.fsf@nosuchdomain.example.com> <up4ceh$3k4b8$1@dont-email.me>
<up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me>
<up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me>
<86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me>
<86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me>
<upas3j$10bft$1@dont-email.me> <upb5q3$11vej$1@dont-email.me>
<K79uN.374649$p%Mb.218835@fx15.iad> <upb8c8$12do6$1@dont-email.me>
<upbj9c$14443$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 31 Jan 2024 06:12:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6d6e39d72828d64573e6503e5cd44852";
logging-data="1486079"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+viS/vxT03ZtrH0PuHtNiV"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:yYTF44y4DCs41A1ZO+19Aey3O3M=
 by: Lawrence D'Oliv - Wed, 31 Jan 2024 06:12 UTC

On Tue, 30 Jan 2024 19:39:24 +0000, Richard Harnden wrote:

> Nobody uses printf to output binary data.

Do terminal-control escape sequences count?


devel / comp.lang.c / iso646.h

Pages:1234567891011121314151617181920212223242526
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor