Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Bus error -- driver executed.


devel / comp.lang.c / Re: Is this safe?

SubjectAuthor
* Re: Is this safe?James Kuyper
`* Re: Is this safe?Richard Damon
 +- Re: Is this safe?James Kuyper
 `- Re: Is this safe?Tim Rentsch

1
Re: Is this safe?

<tt85k9$1tj6h$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: jameskuy...@alumni.caltech.edu (James Kuyper)
Newsgroups: comp.lang.c
Subject: Re: Is this safe?
Date: Thu, 23 Feb 2023 11:52:25 -0500
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <tt85k9$1tj6h$1@dont-email.me>
References: <tt083h$qh3d$1@dont-email.me> <tt1hs1$11hjh$1@dont-email.me>
<tt228c$13ftg$1@dont-email.me> <tt2jgo$15erm$1@dont-email.me>
<tt2lsl$15ohe$1@dont-email.me>
<e84b5538-049b-44fc-be30-2a7625f49503n@googlegroups.com>
<tt4n2n$1fp0v$1@dont-email.me> <tt756o$1qfle$1@dont-email.me>
<tt7c1d$1r754$1@dont-email.me> <tt7f8f$1rh5j$1@dont-email.me>
<tt7ff6$1rj3p$1@dont-email.me> <tt7i6i$1rpb5$1@dont-email.me>
<tt82j1$1tivo$1@dont-email.me> <tt83vh$1tk8v$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 23 Feb 2023 16:52:25 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="dbcfaeb728651dc45440c6790218c30e";
logging-data="2018513"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19khGCAIRvzz/7QEXjgLiorIYdeMPi4SQ4="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.7.1
Cancel-Lock: sha1:a0BoaTFX1YAxzA5MgiLP5Zw+CYs=
In-Reply-To: <tt83vh$1tk8v$1@dont-email.me>
Content-Language: en-US
 by: James Kuyper - Thu, 23 Feb 2023 16:52 UTC

On 2/23/23 11:24, Paavo Helde wrote:
> 23.02.2023 18:00 Muttley@dastardlyhq.com kirjutas:
>
>>
>> Unlike letters the characters for digits don't change unless you're
>> talking
>> about something like ancient egyptian.
>
> You are funny!
>
> I was bored, so I coded a counter-example:
>
> #include <locale.h>
> #include <ctype.h>
> #include <string>
> #include <iostream>
>
> int main() {
> if (!setlocale(LC_ALL, "French_Canada.1252")) {
> std::cerr << "Failed to set locale\n";
> return EXIT_FAILURE;
> }
> std::string s = "a² + b² = c²";
> bool result = isdigit(static_cast<unsigned char>(s[1]));
> std::cout << "'" << s[1] << "' is " <<
> (result? "a digit": "not a digit") << "\n";
> }
>
> Output:
>
> '²' is a digit

That's non-conforming.
"The isdigit function tests for any decimal-digit character (as defined
in 5.2.1)." (7.4.1.5).

"...
the 10 decimal digits
0 1 2 3 4 5 6 7 8 9" (5.2.1p3)

"digits" is italicized, an ISO convention indicating that this
constitutes the official definition of that term. '2' is on that list,
'²' is not, and that definition allows for only 10 digits.

Re: Is this safe?

<UcNJL.102163$eRZ7.2491@fx06.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx06.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.7.2
Subject: Re: Is this safe?
Content-Language: en-US
Newsgroups: comp.lang.c
References: <tt083h$qh3d$1@dont-email.me> <tt1hs1$11hjh$1@dont-email.me>
<tt228c$13ftg$1@dont-email.me> <tt2jgo$15erm$1@dont-email.me>
<tt2lsl$15ohe$1@dont-email.me>
<e84b5538-049b-44fc-be30-2a7625f49503n@googlegroups.com>
<tt4n2n$1fp0v$1@dont-email.me> <tt756o$1qfle$1@dont-email.me>
<tt7c1d$1r754$1@dont-email.me> <tt7f8f$1rh5j$1@dont-email.me>
<tt7ff6$1rj3p$1@dont-email.me> <tt7i6i$1rpb5$1@dont-email.me>
<tt82j1$1tivo$1@dont-email.me> <tt83vh$1tk8v$1@dont-email.me>
<tt85k9$1tj6h$1@dont-email.me>
From: Rich...@Damon-Family.org (Richard Damon)
In-Reply-To: <tt85k9$1tj6h$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 58
Message-ID: <UcNJL.102163$eRZ7.2491@fx06.iad>
X-Complaints-To: abuse@easynews.com
Organization: Forte - www.forteinc.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Thu, 23 Feb 2023 12:17:39 -0500
X-Received-Bytes: 3003
 by: Richard Damon - Thu, 23 Feb 2023 17:17 UTC

On 2/23/23 11:52 AM, James Kuyper wrote:
> On 2/23/23 11:24, Paavo Helde wrote:
>> 23.02.2023 18:00 Muttley@dastardlyhq.com kirjutas:
>>
>>>
>>> Unlike letters the characters for digits don't change unless you're
>>> talking
>>> about something like ancient egyptian.
>>
>> You are funny!
>>
>> I was bored, so I coded a counter-example:
>>
>> #include <locale.h>
>> #include <ctype.h>
>> #include <string>
>> #include <iostream>
>>
>> int main() {
>> if (!setlocale(LC_ALL, "French_Canada.1252")) {
>> std::cerr << "Failed to set locale\n";
>> return EXIT_FAILURE;
>> }
>> std::string s = "a² + b² = c²";
>> bool result = isdigit(static_cast<unsigned char>(s[1]));
>> std::cout << "'" << s[1] << "' is " <<
>> (result? "a digit": "not a digit") << "\n";
>> }
>>
>> Output:
>>
>> '²' is a digit
>
> That's non-conforming.
> "The isdigit function tests for any decimal-digit character (as defined
> in 5.2.1)." (7.4.1.5).
>
>
> "...
> the 10 decimal digits
> 0 1 2 3 4 5 6 7 8 9" (5.2.1p3)
>
> "digits" is italicized, an ISO convention indicating that this
> constitutes the official definition of that term. '2' is on that list,
> '²' is not, and that definition allows for only 10 digits.
>

And before that it says (in p1)

Each set is further divided into a basic character set, whose contents
are given by this subclause, and a set of zero or more locale-specific
members (which are not members of the basic character set) called
extended characters.

So ALL the categories may have locale specific additions added.

So, unless a function specifically restricts its classification to just
the "basic character set", there might be extended characters in the set.

Re: Is this safe?

<tt9nkh$24rgo$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: jameskuy...@alumni.caltech.edu (James Kuyper)
Newsgroups: comp.lang.c
Subject: Re: Is this safe?
Date: Fri, 24 Feb 2023 02:05:53 -0500
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <tt9nkh$24rgo$2@dont-email.me>
References: <tt083h$qh3d$1@dont-email.me> <tt1hs1$11hjh$1@dont-email.me>
<tt228c$13ftg$1@dont-email.me> <tt2jgo$15erm$1@dont-email.me>
<tt2lsl$15ohe$1@dont-email.me>
<e84b5538-049b-44fc-be30-2a7625f49503n@googlegroups.com>
<tt4n2n$1fp0v$1@dont-email.me> <tt756o$1qfle$1@dont-email.me>
<tt7c1d$1r754$1@dont-email.me> <tt7f8f$1rh5j$1@dont-email.me>
<tt7ff6$1rj3p$1@dont-email.me> <tt7i6i$1rpb5$1@dont-email.me>
<tt82j1$1tivo$1@dont-email.me> <tt83vh$1tk8v$1@dont-email.me>
<tt85k9$1tj6h$1@dont-email.me> <UcNJL.102163$eRZ7.2491@fx06.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 24 Feb 2023 07:05:53 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="e6e9541716af4b1388f5ef64fe60c32d";
logging-data="2256408"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+iX3NhOaobu/71vndzRucYLDNS1uP8iAk="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.7.1
Cancel-Lock: sha1:Zi/b0YvmAEBBGcI/jG9DnqL8e1c=
Content-Language: en-US
In-Reply-To: <UcNJL.102163$eRZ7.2491@fx06.iad>
 by: James Kuyper - Fri, 24 Feb 2023 07:05 UTC

On 2/23/23 12:17, Richard Damon wrote:
> On 2/23/23 11:52 AM, James Kuyper wrote:
....
>> That's non-conforming.
>> "The isdigit function tests for any decimal-digit character (as defined
>> in 5.2.1)." (7.4.1.5).
>>
>>
>> "...
>> the 10 decimal digits
>> 0 1 2 3 4 5 6 7 8 9" (5.2.1p3)
>>
>> "digits" is italicized, an ISO convention indicating that this
>> constitutes the official definition of that term. '2' is on that list,
>> '²' is not, and that definition allows for only 10 digits.
>>
>
> And before that it says (in p1)
>
> Each set is further divided into a basic character set, whose contents
> are given by this subclause, and a set of zero or more locale-specific
> members (which are not members of the basic character set) called
> extended characters.
>
> So ALL the categories may have locale specific additions added.
>
> So, unless a function specifically restricts its classification to just
> the "basic character set", there might be extended characters in the set.

My apologies. I accidentally posted that to the wrong newsgroup, and
then deleted it (on groups.google.com) and reposted it to the correct
group (comp.lang.c++).
I've responded to other messages of yours on this issue in that thread
on comp.lang.c++. If you don't believe that I've resolved the issue with
those messages, please respond in that newsgroup, rather than this one.

Re: Is this safe?

<86lekk9yc0.fsf@linuxsc.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: tr.17...@z991.linuxsc.com (Tim Rentsch)
Newsgroups: comp.lang.c
Subject: Re: Is this safe?
Date: Sun, 26 Feb 2023 08:38:07 -0800
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <86lekk9yc0.fsf@linuxsc.com>
References: <tt083h$qh3d$1@dont-email.me> <tt1hs1$11hjh$1@dont-email.me> <tt228c$13ftg$1@dont-email.me> <tt2jgo$15erm$1@dont-email.me> <tt2lsl$15ohe$1@dont-email.me> <e84b5538-049b-44fc-be30-2a7625f49503n@googlegroups.com> <tt4n2n$1fp0v$1@dont-email.me> <tt756o$1qfle$1@dont-email.me> <tt7c1d$1r754$1@dont-email.me> <tt7f8f$1rh5j$1@dont-email.me> <tt7ff6$1rj3p$1@dont-email.me> <tt7i6i$1rpb5$1@dont-email.me> <tt82j1$1tivo$1@dont-email.me> <tt83vh$1tk8v$1@dont-email.me> <tt85k9$1tj6h$1@dont-email.me> <UcNJL.102163$eRZ7.2491@fx06.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: reader01.eternal-september.org; posting-host="526989a27dd75bcaca35e6c31d23f3c5";
logging-data="3122097"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Eb3GII2lhsugX9In5qHmvcKSlTUv1aQY="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:rORxW0HNuAHbpNCP4m/Xlzv9R3k=
sha1:Xn4CF30u/pzi+v1pt7D8dmahuUs=
 by: Tim Rentsch - Sun, 26 Feb 2023 16:38 UTC

Richard Damon <Richard@Damon-Family.org> writes:
> On 2/23/23 11:52 AM, James Kuyper wrote:
>> On 2/23/23 11:24, Paavo Helde wrote:
>>
>>> [example]
>>
>> That's non-conforming.
>> "The isdigit function tests for any decimal-digit character (as
>> defined in 5.2.1)." (7.4.1.5).
>>
>> "...
>> the 10 decimal digits
>> 0 1 2 3 4 5 6 7 8 9" (5.2.1p3)
>>
>> "digits" is italicized, an ISO convention indicating that this
>> constitutes the official definition of that term. [only those
>> 10 characters are allowed, not any others.]
>
> And before that it says (in p1)
>
> Each set is further divided into a basic character set, whose
> contents are given by this subclause, and a set of zero or more
> locale-specific members (which are not members of the basic
> character set) called extended characters.
>
> So ALL the categories may have locale specific additions added.
>
> So, unless a function specifically restricts its classification to
> just the "basic character set", there might be extended characters
> in the set.

You are misreading the meaning here. The phrase "Each set" in
section 5.2.1 paragraph 1 refers only to the two sets mentioned in
that paragraph, namely, the source character set and the execution
character set; it does not refer to the several named collections
of characters given in paragraph 3, which collections are not even
identified in the C standard as "sets", including in the passages
mentioning them in section 7.4.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor