Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

6 May, 2024: The networking issue during the past two days has been identified and appears to be fixed. Will keep monitoring.


devel / comp.lang.xharbour / ctot error

SubjectAuthor
* ctot errorClaude R
`* ctot errorEnrico Maria Giordano
 `* ctot errorRon Pinkas
  `* ctot errorEnrico Maria Giordano
   `* ctot errorEnrico Maria Giordano
    `* ctot errorEnrico Maria Giordano
     `- ctot errorEnrico Maria Giordano

1
ctot error

<61e79070-b0b4-4140-998d-001f8eb1df76n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:6214:9d0:b0:64a:683a:2b76 with SMTP id dp16-20020a05621409d000b0064a683a2b76mr47336qvb.7.1692627174993;
Mon, 21 Aug 2023 07:12:54 -0700 (PDT)
X-Received: by 2002:a17:902:dad2:b0:1b8:9468:c04 with SMTP id
q18-20020a170902dad200b001b894680c04mr2994129plx.5.1692627174678; Mon, 21 Aug
2023 07:12:54 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!1.us.feeder.erje.net!feeder.erje.net!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Mon, 21 Aug 2023 07:12:54 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=185.106.27.209; posting-account=aBOH4woAAAAyckrghnZta9WeFpGUviXg
NNTP-Posting-Host: 185.106.27.209
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <61e79070-b0b4-4140-998d-001f8eb1df76n@googlegroups.com>
Subject: ctot error
From: jclau...@gmail.com (Claude R)
Injection-Date: Mon, 21 Aug 2023 14:12:54 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 9
 by: Claude R - Mon, 21 Aug 2023 14:12 UTC

Hello,
Please try this:

set date format to "dd/mm/yyyyy"
alert(ttoc(ctot('21/08/2023 13:31:08.228')))

gives here result '21/08/2023 13:31:08.227' (!)

Is this bug still in latest version ?
Claude R.

Re: ctot error

<uc00me$1uq07$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: e.m.gior...@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Re: ctot error
Date: Mon, 21 Aug 2023 17:43:13 +0200
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <uc00me$1uq07$1@dont-email.me>
References: <61e79070-b0b4-4140-998d-001f8eb1df76n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 21 Aug 2023 15:43:10 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e68e15477a88c25b3c0a419d03cf7e9e";
logging-data="2058247"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18tMbToUk4UuzA9PYjb7Ecm"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:jKdCO+eiGDeITT4Zns2AnuG27aA=
In-Reply-To: <61e79070-b0b4-4140-998d-001f8eb1df76n@googlegroups.com>
 by: Enrico Maria Giordan - Mon, 21 Aug 2023 15:43 UTC

Il 21/08/2023 16:12, Claude R ha scritto:

> Hello,
> Please try this:
>
> set date format to "dd/mm/yyyyy"
> alert(ttoc(ctot('21/08/2023 13:31:08.228')))
>
> gives here result '21/08/2023 13:31:08.227' (!)
>
> Is this bug still in latest version ?

Yes, there is. :-(

I don't know how to fix it, sorry. Ron?

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

Re: ctot error

<524648d0-18f7-4f2b-8450-93961b21d348n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:ad4:58a9:0:b0:64a:f3e1:91a2 with SMTP id ea9-20020ad458a9000000b0064af3e191a2mr42408qvb.7.1692638843162;
Mon, 21 Aug 2023 10:27:23 -0700 (PDT)
X-Received: by 2002:a63:3c0f:0:b0:564:9d5e:c985 with SMTP id
j15-20020a633c0f000000b005649d5ec985mr951598pga.1.1692638842663; Mon, 21 Aug
2023 10:27:22 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Mon, 21 Aug 2023 10:27:22 -0700 (PDT)
In-Reply-To: <uc00me$1uq07$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2806:10be:8:85b5:992d:4dd1:8a2e:52cd;
posting-account=8KTLLQoAAABrqmjk_im031yR_2Rimshb
NNTP-Posting-Host: 2806:10be:8:85b5:992d:4dd1:8a2e:52cd
References: <61e79070-b0b4-4140-998d-001f8eb1df76n@googlegroups.com> <uc00me$1uq07$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <524648d0-18f7-4f2b-8450-93961b21d348n@googlegroups.com>
Subject: Re: ctot error
From: ronpin...@gmail.com (Ron Pinkas)
Injection-Date: Mon, 21 Aug 2023 17:27:23 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2011
 by: Ron Pinkas - Mon, 21 Aug 2023 17:27 UTC

On Monday, August 21, 2023 at 10:43:13 AM UTC-5, Enrico Maria Giordano wrote:
> Il 21/08/2023 16:12, Claude R ha scritto:
>
> > Hello,
> > Please try this:
> >
> > set date format to "dd/mm/yyyyy"
> > alert(ttoc(ctot('21/08/2023 13:31:08.228')))
> >
> > gives here result '21/08/2023 13:31:08.227' (!)
> >
> > Is this bug still in latest version ?
> Yes, there is. :-(
>
> I don't know how to fix it, sorry. Ron?
>
> --
> Enrico Maria Giordano
>
> http://www.emagsoftware.it
> http://www.emagsoftware.it/emgmusic
> http://www.emagsoftware.it/spectrum
> http://www.emagsoftware.it/tbosg

I am not familiar with the datetime implementation, but IIYC this ie likely a floating point arithmetic limitation issue.

Ron

Re: ctot error

<uc07ns$2090c$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: e.m.gior...@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Re: ctot error
Date: Mon, 21 Aug 2023 19:43:28 +0200
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <uc07ns$2090c$1@dont-email.me>
References: <61e79070-b0b4-4140-998d-001f8eb1df76n@googlegroups.com>
<uc00me$1uq07$1@dont-email.me>
<524648d0-18f7-4f2b-8450-93961b21d348n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 21 Aug 2023 17:43:24 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e68e15477a88c25b3c0a419d03cf7e9e";
logging-data="2106380"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19oThs8eqAoHJ4oGjtqDry4"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:LJEDqXVxxbG2iVmIOqB8J888xJ0=
In-Reply-To: <524648d0-18f7-4f2b-8450-93961b21d348n@googlegroups.com>
 by: Enrico Maria Giordan - Mon, 21 Aug 2023 17:43 UTC

Il 21/08/2023 19:27, Ron Pinkas ha scritto:

> I am not familiar with the datetime implementation, but IIYC this ie likely a floating point arithmetic limitation issue.

I don't think so, at least not at the CTOD() function level. The value
of s_value here is 8.228000:

hb_retdt( y_value, m_value, d_value, h_value, n_value, s_value, 0 );

But the displayed value is:

21/08/2023 13:31:08.227

So the bug seem to be inside hb_retdt() function. Too much for me... :-(

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

Re: ctot error

<uc07qc$2090c$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: e.m.gior...@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Re: ctot error
Date: Mon, 21 Aug 2023 19:44:47 +0200
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <uc07qc$2090c$2@dont-email.me>
References: <61e79070-b0b4-4140-998d-001f8eb1df76n@googlegroups.com>
<uc00me$1uq07$1@dont-email.me>
<524648d0-18f7-4f2b-8450-93961b21d348n@googlegroups.com>
<uc07ns$2090c$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 21 Aug 2023 17:44:44 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e68e15477a88c25b3c0a419d03cf7e9e";
logging-data="2106380"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX193t9D7f/bisOaEa27kE0u6"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:UwL5MPbtss03PJjdPYAzxT3hKwE=
In-Reply-To: <uc07ns$2090c$1@dont-email.me>
 by: Enrico Maria Giordan - Mon, 21 Aug 2023 17:44 UTC

Il 21/08/2023 19:43, Enrico Maria Giordano ha scritto:

> I don't think so, at least not at the CTOD() function level. The value
> of s_value here is 8.228000:
>
> hb_retdt( y_value, m_value, d_value, h_value, n_value, s_value, 0 );
>
> But the displayed value is:
>
> 21/08/2023 13:31:08.227
>
> So the bug seem to be inside hb_retdt() function. Too much for me... :-(

But if someone have any experiments to suggest I will be glad to try to
make it.

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

Re: ctot error

<uc7rm7$3gm3s$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: e.m.gior...@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Re: ctot error
Date: Thu, 24 Aug 2023 17:06:48 +0200
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <uc7rm7$3gm3s$1@dont-email.me>
References: <61e79070-b0b4-4140-998d-001f8eb1df76n@googlegroups.com>
<uc00me$1uq07$1@dont-email.me>
<524648d0-18f7-4f2b-8450-93961b21d348n@googlegroups.com>
<uc07ns$2090c$1@dont-email.me> <uc07qc$2090c$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 24 Aug 2023 15:06:47 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="423bcb9e0a689953d2ac979ce4454384";
logging-data="3692668"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18bs5iVSlBaxwqnSZxUnrQ2"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:To/Oa4SZ9E2uvKRGdl5/jZhlMRo=
In-Reply-To: <uc07qc$2090c$2@dont-email.me>
 by: Enrico Maria Giordan - Thu, 24 Aug 2023 15:06 UTC

Thanks to Richard Visscher that pointed me to the bugged function, I
could fixed this bug:

long hb_timeEncode( int iHour, int iMinute, double dSeconds )
{ HB_TRACE( HB_TR_DEBUG, ( "hb_timeEncode(%d, %d, %f)", iHour,
iMinute, dSeconds ) );
//printf( "hb_timeEncode(%d, %d, %f)", lHour, lMinute, dSeconds);

if( iHour >= 0 && iHour <= 23 && iMinute >= 0 && iMinute <= 59 &&
dSeconds >= 0 && dSeconds < 60 )
{
return ( long ) ( iHour * 3600 * HB_DATETIMEINSEC + iMinute * 60
* HB_DATETIMEINSEC + dSeconds * HB_DATETIMEINSEC ); // The bug was here!!!
}

return 0;
}

Please commit.

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

Re: ctot error

<uc7se4$3h36d$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: e.m.gior...@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Re: ctot error
Date: Thu, 24 Aug 2023 17:19:33 +0200
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <uc7se4$3h36d$1@dont-email.me>
References: <61e79070-b0b4-4140-998d-001f8eb1df76n@googlegroups.com>
<uc00me$1uq07$1@dont-email.me>
<524648d0-18f7-4f2b-8450-93961b21d348n@googlegroups.com>
<uc07ns$2090c$1@dont-email.me> <uc07qc$2090c$2@dont-email.me>
<uc7rm7$3gm3s$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 24 Aug 2023 15:19:32 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="423bcb9e0a689953d2ac979ce4454384";
logging-data="3706061"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Hh2VSY61akYPhVBRDEJCi"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:Ft7moyNxjzFFLw4aCZVNSOKfKVg=
In-Reply-To: <uc7rm7$3gm3s$1@dont-email.me>
 by: Enrico Maria Giordan - Thu, 24 Aug 2023 15:19 UTC

Il 24/08/2023 17:06, Enrico Maria Giordano ha scritto:

>       return ( long ) ( iHour * 3600 * HB_DATETIMEINSEC + iMinute * 60
> * HB_DATETIMEINSEC + dSeconds * HB_DATETIMEINSEC );  // The bug was here!!!

But please, verify my fix before committing it!

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor