Re: [fpc-pascal] How to get fpc and lazarus sources when svn has shut down?

2021-08-12 Thread Michael Van Canneyt via fpc-pascal
On Thu, 12 Aug 2021, Dmitry Boyarintsev wrote: On Thu, Aug 12, 2021 at 12:27 AM Michael Van Canneyt via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: It's like switching car brands from a VW to an Audi or so. Some buttons are in different places, your key will maybe look dif

Re: [fpc-pascal] How to get fpc and lazarus sources when svn has shut down?

2021-08-11 Thread Michael Van Canneyt via fpc-pascal
On Wed, 11 Aug 2021, Bart via fpc-pascal wrote: On Wed, Aug 11, 2021 at 11:37 PM Michael Van Canneyt via fpc-pascal wrote: As a programmer, switching version systems should be a no-brainer. My brain begs to differ... Well, sorry to say, but I don't understand this. What's so hard

Re: [fpc-pascal] How to get fpc and lazarus sources when svn has shut down?

2021-08-11 Thread Michael Van Canneyt via fpc-pascal
On Wed, 11 Aug 2021, Dmitry Boyarintsev via fpc-pascal wrote: why not to use Github mirror? Why not encourage people to go with the times ? Git is not some witchcraft or dark magic. It's only a version system. As a programmer, switching version systems should be a no-brainer. Michael.

Re: [fpc-pascal] How to get fpc and lazarus sources when svn has shut down?

2021-08-11 Thread Michael Van Canneyt via fpc-pascal
On Wed, 11 Aug 2021, Bo Berglund via fpc-pascal wrote: I have for many years been using an install script I wrote to install a complete freepascal/lazarus dev environment on Raspberry Pi devices. The script uses subversion to get the sources for fpc and lazarus via svn based on the specific

[fpc-pascal] FPC move to mantis completed

2021-08-08 Thread Michael Van Canneyt via fpc-pascal
Hello, After several technical issues (8 tries were needed to convert the FPC sources to git), the move from svn/mantis to gitlab has been completed. The FPC sources are now available at https://gitlab.com/freepascal.org/fpc/source All FPC git repositories are available at:

Re: [fpc-pascal] Old Mantis issue broken URL redirection

2021-08-03 Thread Michael Van Canneyt via fpc-pascal
On Wed, 4 Aug 2021, Zamrony P. Juhara via fpc-pascal wrote: Hi, URL redirection of old mantis issue to Gitlab  is not working https://bugs.freepascal.org/view.php?id=[issue id] redirects to https://gitlab.com/freepascal.org/fpc/source/-/issues/[issue id] which yields page not found (404)

Re: [fpc-pascal] Moving to gitlab.

2021-07-22 Thread Michael Van Canneyt via fpc-pascal
On Thu, 22 Jul 2021, John Lee via fpc-pascal wrote: I use viewvc to look at repository - is there an equivalent when everyting is on gitlaB? tia john Yes; The gitlab interface. https://gitlab.com/freepascal.org/fpc/testconversion3/-/commits/main Michael

[fpc-pascal] Moving to gitlab.

2021-07-22 Thread Michael Van Canneyt via fpc-pascal
Hello, Some of you may have seen this on the lazarus list: During the upcoming weekend we will be moving to GitLab. During this time, there may be interruptions to 2 of our services: - SVN will become unavailable permanently. - Mantis/Bugtracker will become unavailable.   * It will be taken

[fpc-pascal] To all Mantis (Bugtracker) account holders - prepare for the move to Gitlab - Now

2021-07-17 Thread Michael Van Canneyt via fpc-pascal
Repost from the lazarus list: --- Hello All, https://forum.lazarus.freepascal.org/index.php/topic,55167.0.html We are moving our bugs to Gitlab. - If you have a mantis account, - and you want your bugs (or notes) to be identified on gitlab we can add your gitlab account to the info of the

Re: [fpc-pascal] RxDBGrid and RxColumn

2021-07-15 Thread Michael Van Canneyt via fpc-pascal
On Wed, 14 Jul 2021, Hassan Camacho Cadre via fpc-pascal wrote: Hello I am using lazarus v2.012 and rxnew 3.3.5.231. In a form I have placed a RxDBGrid component with a lookup column, I want to know if it is possible search on the values of this column as the user types, just like the

Re: [fpc-pascal] FPC & Lazarus moving to gitlab

2021-07-05 Thread Michael Van Canneyt via fpc-pascal
On Mon, 5 Jul 2021, Bo Berglund via fpc-pascal wrote: On Mon, 5 Jul 2021 19:17:35 +0100, Graeme Geldenhuys via fpc-pascal wrote: On 04/07/2021 9:12 pm, Martin Frb via fpc-pascal wrote: I recommend on the long run to switch to git. Once you switch, you'll never want to go back. ;-) In

Re: [fpc-pascal] Tuples as variant arrays

2021-06-26 Thread Michael Van Canneyt via fpc-pascal
On Fri, 25 Jun 2021, Dennis Lee Bieber via fpc-pascal wrote: On Fri, 25 Jun 2021 16:12:41 -0600, Ryan Joseph via fpc-pascal declaimed the following: Is it possible something like this could work? Seems like it should but I get an error (got MyRecord expected variant).

[fpc-pascal] FPC & Lazarus moving to gitlab

2021-06-22 Thread Michael Van Canneyt via fpc-pascal
Hello All, The Free Pascal and Lazarus teams are in the process of switching to Gitlab to manage their source code and issue reports. In order to lower maintenance of their own infrastructure, a hosted solution has been chosen, and an open source license was granted to the teams. You can

[fpc-pascal] Push rules

2021-06-22 Thread Michael Van Canneyt via fpc-pascal
Hello, Martin asked how we intend to go about git commit authors/emails. These can of course be manipulated at will in Git. But gitlab can place some restrictions on what is pushed to the repo: https://docs.gitlab.com/ee/push_rules/push_rules.html From what I understood, the lazarus team is

Re: [fpc-pascal] Will the size of an executable depend on the uses clause

2021-06-16 Thread Michael Van Canneyt via fpc-pascal
On Wed, 16 Jun 2021, Bo Berglund via fpc-pascal wrote: I had to add SysUtils to make it work but Lazarus put Classes in there by itself. Since the final binary size after using strip -s on the exe file is 271 kb it seems a bit big! Or is there a lot behind the scenes I have missed? I see

Re: [fpc-pascal] Will the size of an executable depend on the uses clause

2021-06-16 Thread Michael Van Canneyt via fpc-pascal
On Wed, 16 Jun 2021, Tomas Hajny via fpc-pascal wrote: On 2021-06-16 11:38, Marco van de Voort via fpc-pascal wrote: Op 2021-06-16 om 11:21 schreef Tomas Hajny via fpc-pascal:  Or if they contain $R inclusions. ...or many other things which may not be smartlinked, either because it is not

Re: [fpc-pascal] TMemoryStream.SetSize question.

2021-06-14 Thread Michael Van Canneyt via fpc-pascal
On Mon, 14 Jun 2021, gabor via fpc-pascal wrote: W dniu 2021-06-14 o 21:27, Michael Van Canneyt via fpc-pascal pisze: On Mon, 14 Jun 2021, gabor via fpc-pascal wrote: Why does TMemoryStream only implement one version of SetSize method? https://svn.freepascal.org/cgi-bin/viewvc.cgi

Re: [fpc-pascal] TMemoryStream.SetSize question.

2021-06-14 Thread Michael Van Canneyt via fpc-pascal
On Mon, 14 Jun 2021, gabor via fpc-pascal wrote: Why does TMemoryStream only implement one version of SetSize method? https://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/rtl/objpas/classes/classesh.inc?revision=49038=markup#l1225 The TStream class has two versions of SetSize method

Re: [fpc-pascal] -FNsystem

2021-05-27 Thread Michael Van Canneyt via fpc-pascal
On Thu, 27 May 2021, Sven Barth via fpc-pascal wrote: Mattias Gaertner via fpc-pascal schrieb am Do., 27. Mai 2021, 13:32: Hi, There are some dotted units in fpc, e.g. system.uitypes. So it would be nice to have -FNsystem in the default fpc.cfg (Delphi compatible). What do you think?

Re: [fpc-pascal] Can a console app running as Linux service restart itself?

2021-05-20 Thread Michael Van Canneyt via fpc-pascal
On Thu, 20 May 2021, Bo Berglund via fpc-pascal wrote: On Thu, 20 May 2021 14:52:47 +0200 (CEST), Michael Van Canneyt via fpc-pascal wrote: On Thu, 20 May 2021, Bo Berglund via fpc-pascal wrote: I would like my service application to restart itself once per 24 hours, but only when

Re: [fpc-pascal] Can a console app running as Linux service restart itself?

2021-05-20 Thread Michael Van Canneyt via fpc-pascal
On Thu, 20 May 2021, Bo Berglund via fpc-pascal wrote: I would like my service application to restart itself once per 24 hours, but only when nothing else is going on. So the application itself would know this but how can I make it restart itself (as the service)? Just exit ? If you

Re: [fpc-pascal] FTP support gone - switch to HTTP ?

2021-05-18 Thread Michael Van Canneyt via fpc-pascal
On Tue, 18 May 2021, Graeme Geldenhuys via fpc-pascal wrote: On 17/05/2021 3:13 pm, Karoly Balogh via fpc-pascal wrote: I'd actually keep FTP enabled, as it doesn't hurt anything and it's still a thing for retro downloads. Not just "retro" but a more efficient and faster protocol for file

Re: [fpc-pascal] Dependency of OpenSSL 1.0.2 still in FPC 3.2.0 on some platforms?

2021-05-18 Thread Michael Van Canneyt via fpc-pascal
On Mon, 17 May 2021, Travis Siegel via fpc-pascal wrote: The -dev part of the package is necessary for the headers used for compiling, any target system running the finished product will not require the -dev version of the packages to be installed, since they won't be using the header files

Re: [fpc-pascal] Dependency of OpenSSL 1.0.2 still in FPC 3.2.0 on some platforms?

2021-05-17 Thread Michael Van Canneyt via fpc-pascal
On Tue, 18 May 2021, Bo Berglund via fpc-pascal wrote: On Mon, 17 May 2021 23:20:16 +0200, gebylist via fpc-pascal wrote: ?Dne 17.05.2021 v 22:06 Bo Berglund via fpc-pascal napsal(a): And that is what I have done, it is listed in uses of my mailsupport source file as: uses Classes,

Re: [fpc-pascal] FTP support gone - switch to HTTP ?

2021-05-17 Thread Michael Van Canneyt via fpc-pascal
Apologies, typed the wrong email alias. This was meant to go to the core list. The problem is real, though... Consider it a heads up :-) Michael. On Mon, 17 May 2021, Michael Van Canneyt via fpc-pascal wrote: Hello, Mattias Gaertner pointed out that Chrome no longer supports FTP

[fpc-pascal] FTP support gone - switch to HTTP ?

2021-05-17 Thread Michael Van Canneyt via fpc-pascal
Hello, Mattias Gaertner pointed out that Chrome no longer supports FTP downloads. I know that Firefox will follow suit really soon (if they haven't already). Since Edge now also uses Chromium, they will soon also have this disabled. This wil surely cause problems for many users. So I think

Re: [fpc-pascal] Dependency of OpenSSL 1.0.2 still in FPC 3.2.0 on some platforms?

2021-05-15 Thread Michael Van Canneyt via fpc-pascal
On Sat, 15 May 2021, Bo Berglund via fpc-pascal wrote: On Sat, 15 May 2021 09:00:08 +0200 (CEST), Michael Van Canneyt via fpc-pascal wrote: Glad you got it working. I worked for some time for a mass mailing company. From that experience I assure you that delivering mail is NOT easy

Re: [fpc-pascal] Dependency of OpenSSL 1.0.2 still in FPC 3.2.0 on some platforms?

2021-05-15 Thread Michael Van Canneyt via fpc-pascal
On Sat, 15 May 2021, Bo Berglund via fpc-pascal wrote: It is not a size problem, the test mail contains just a very small zipfile sample (5 kb in size). And the mail is not in the spam folder either, it is simply silently rejected by GMail... No error message. It turns out that GMail

Re: [fpc-pascal] SQLDB: Set MySQL SkipVersionCheck in TSQLConnector

2021-05-14 Thread Michael Van Canneyt via fpc-pascal
On Fri, 14 May 2021, Luis Henrique via fpc-pascal wrote: Does Anyone known how to set TMySQLConnectionXX SkipVersionCheck property from TSQLConnector?   It validates the client version against the server version, which is problematic, as some client libraries are backward compatible and

Re: [fpc-pascal] Dependency of OpenSSL 1.0.2 still in FPC 3.2.0 on some platforms?

2021-05-13 Thread Michael Van Canneyt via fpc-pascal
On Thu, 13 May 2021, Bo Berglund via fpc-pascal wrote: On Wed, 12 May 2021 12:42:14 +0200 (CEST), Michael Van Canneyt via fpc-pascal wrote: The only attachment example I have (from Michael) brings in mime, which I don't understand much of and the synapse docs are very hard reading too. I

Re: [fpc-pascal] 50 years of Pascal, by the the author himself

2021-05-13 Thread Michael Van Canneyt via fpc-pascal
On Wed, 12 May 2021, Ryan Joseph via fpc-pascal wrote: On May 12, 2021, at 4:00 PM, Sven Barth wrote: There's also Oxygene as one of the current ones. Oh that's right, that's a pretty cool one. I hope once closures are finished we can use them to implement async/await like Oxygene

Re: [fpc-pascal] Dependency of OpenSSL 1.0.2 still in FPC 3.2.0 on some platforms?

2021-05-12 Thread Michael Van Canneyt via fpc-pascal
On Tue, 11 May 2021, Bo Berglund via fpc-pascal wrote: On Mon, 10 May 2021 09:24:37 - (UTC), Virgo Pärna via fpc-pascal wrote: On Mon, 10 May 2021 10:08:53 +0200 (CEST), Michael Van Canneyt via fpc-pascal wrote: That's it. From your story, it seems you just need to set

Re: [fpc-pascal] Dependency of OpenSSL 1.0.2 still in FPC 3.2.0 on some platforms?

2021-05-10 Thread Michael Van Canneyt via fpc-pascal
On Mon, 10 May 2021, Bo Berglund via fpc-pascal wrote: Not so simple when you read scores of Internet pages on the subject... 99% of what is written on internet is junk or outdated. OK, maybe it's only 98%. Check the synapse sources, that's all you need. The handling of attachments is

Re: [fpc-pascal] Dependency of OpenSSL 1.0.2 still in FPC 3.2.0 on some platforms?

2021-05-10 Thread Michael Van Canneyt via fpc-pascal
On Mon, 10 May 2021, Bo Berglund via fpc-pascal wrote: I have now installed Synapse 40.1 in LKazarus 2.0.12 with Fpc 3.2.0 I use it myself in a headless FPC-created server running on linux, since many many years, and use it in a Delphi-created server also running on linux, so I'm very

Re: [fpc-pascal] Dependency of OpenSSL 1.0.2 still in FPC 3.2.0 on some platforms?

2021-05-06 Thread Michael Van Canneyt via fpc-pascal
On Thu, 6 May 2021, Bo Berglund via fpc-pascal wrote: I highly recommend Synapse over Indy. I had great troubles a year or so ago when I tried using some serial packages based on synapse because they brought in GUI stuff that made it impossible to compile a simple program aimed at running

Re: [fpc-pascal] Dependency of OpenSSL 1.0.2 still in FPC 3.2.0 on some platforms?

2021-05-05 Thread Michael Van Canneyt via fpc-pascal
On Wed, 5 May 2021, Bo Berglund via fpc-pascal wrote: On Wed, 5 May 2021 16:51:06 +0200 (CEST), Michael Van Canneyt via fpc-pascal wrote: On Wed, 5 May 2021, Nico Neumann via fpc-pascal wrote: Indy has support for OpenSSL 1.1.1, just not officially (yet). See https://github.com

Re: [fpc-pascal] Dependency of OpenSSL 1.0.2 still in FPC 3.2.0 on some platforms?

2021-05-05 Thread Michael Van Canneyt via fpc-pascal
On Wed, 5 May 2021, Nico Neumann via fpc-pascal wrote: Indy has support for OpenSSL 1.1.1, just not officially (yet). See https://github.com/IndySockets/Indy/pull/299 I am aware of this. Good luck getting that to work on linux. It's a total mess and not nearly ready for production use.

Re: [fpc-pascal] Dependency of OpenSSL 1.0.2 still in FPC 3.2.0 on some platforms?

2021-05-05 Thread Michael Van Canneyt via fpc-pascal
On Wed, 5 May 2021, Bo Berglund via fpc-pascal wrote: I have an application which is ported from Delphi to FreePascal and will be used on Raspberry Pi (Debian based Linux). It uses Indy10 components. Indy is installed using OnLinePackageManager in Lazarus. The problem I have is that when I

Re: [fpc-pascal] [fpc-devel] Nested function closures

2021-04-30 Thread Michael Van Canneyt via fpc-pascal
On Fri, 30 Apr 2021, Bo Berglund via fpc-pascal wrote: On Tue, 27 Apr 2021 10:52:28 -0600, Ryan Joseph via fpc-pascal wrote: On Apr 27, 2021, at 9:58 AM, Michael Van Canneyt wrote: Wait. Is this thread intentionally moved from fpc-devel? No. Mistake, due to mailing list settings

Re: [fpc-pascal] Detecting IO errors with INI file

2021-04-29 Thread Michael Van Canneyt via fpc-pascal
On Thu, 29 Apr 2021, James Richters via fpc-pascal wrote: Best add SysUtils and Classes. Thanks, that worked. But now I'm getting "cannot read or write variables of this type" for Writeln(Exception) is there an easy way to find out what the exception is? On E : Exception do

Re: [fpc-pascal] non-virtual class methods called from virtual regular method

2021-04-29 Thread Michael Van Canneyt via fpc-pascal
On Thu, 29 Apr 2021, LacaK via fpc-pascal wrote: Dňa 29.4.2021 o 9:26 Michael Van Canneyt via fpc-pascal napísal(a): On Thu, 29 Apr 2021, LacaK via fpc-pascal wrote: Hi *, consider the following example T1 = class   class procedure CP1;   procedure P1; virtual; end; T2 = class(T1

Re: [fpc-pascal] Detecting IO errors with INI file

2021-04-29 Thread Michael Van Canneyt via fpc-pascal
On Thu, 29 Apr 2021, James Richters via fpc-pascal wrote: I’m trying to put the Ini file stuff all in it’s own unit. My unit is {$Mode OBJFPC} and Uses IniFiles; “Try” is compiling, but I’m getting Error: Identifier not found “EFOpenError” And also Syntax error “Do” expected but “)” found

Re: [fpc-pascal] non-virtual class methods called from virtual regular method

2021-04-29 Thread Michael Van Canneyt via fpc-pascal
On Thu, 29 Apr 2021, LacaK via fpc-pascal wrote: Hi *, consider the following example T1 = class   class procedure CP1;   procedure P1; virtual; end; T2 = class(T1)   class procedure CP1; end; procedure T1.P1; begin   CP1; // here is called allways T1.CP1, right?   // if I want call

Re: [fpc-pascal] [fpc-devel] Nested function closures

2021-04-27 Thread Michael Van Canneyt via fpc-pascal
On Tue, 27 Apr 2021, Ryan Joseph via fpc-pascal wrote: On Apr 27, 2021, at 9:58 AM, Michael Van Canneyt wrote: Wait. I asked Sven to make sure that nested functions are under ALL circumstances usable as closures or can be used instead of anonymous functions. Pas2js already supports

Re: [fpc-pascal] Mustache templates implementation

2021-04-23 Thread Michael Van Canneyt via fpc-pascal
On Wed, 21 Apr 2021, Michael Van Canneyt via fpc-pascal wrote: The result has been committed to packages/fcl-mustache, in case someone else has a need for it. Now thank you for this, I'll be sure to check it out to replace dmustache. I'm currently porting it to Delphi (where I'll

Re: [fpc-pascal] Mustache templates implementation

2021-04-21 Thread Michael Van Canneyt via fpc-pascal
On Tue, 20 Apr 2021, leledumbo via fpc-pascal wrote: Since dmustache (part of mORMot) fails the official mustache tests and did not work on the platform I needed it for, I wrote my own implementation. I do remember it didn't pass all the tests, but still works for my needs so I let it be.

[fpc-pascal] Mustache templates implementation

2021-04-20 Thread Michael Van Canneyt via fpc-pascal
Hello , For my job I needed a Mustache templates library in pascal. Since dmustache (part of mORMot) fails the official mustache tests and did not work on the platform I needed it for, I wrote my own implementation. The result has been committed to packages/fcl-mustache, in case someone else

Re: [fpc-pascal] Separate release cycle for RTL and compiler proposal

2021-04-19 Thread Michael Van Canneyt via fpc-pascal
On Mon, 19 Apr 2021, Jonas Maebe via fpc-pascal wrote: On 19/04/2021 11:28, Michael Van Canneyt via fpc-pascal wrote: On Mon, 19 Apr 2021, Jonas Maebe via fpc-pascal wrote: On 19/04/2021 09:28, Michael Van Canneyt via fpc-pascal wrote: From what you say, both problems are related

Re: [fpc-pascal] Separate release cycle for RTL and compiler proposal

2021-04-19 Thread Michael Van Canneyt via fpc-pascal
On Mon, 19 Apr 2021, Jonas Maebe via fpc-pascal wrote: On 19/04/2021 09:28, Michael Van Canneyt via fpc-pascal wrote: From what you say, both problems are related to the tool you use. Are there no other tools that can be used ? The wrapping problem is unrelated to the tool

Re: [fpc-pascal] Separate release cycle for RTL and compiler proposal

2021-04-19 Thread Michael Van Canneyt via fpc-pascal
On Mon, 19 Apr 2021, Karoly Balogh via fpc-pascal wrote: Hi, On Mon, 19 Apr 2021, Michael Van Canneyt via fpc-pascal wrote: > The main remaining problem is our hard-wrapped readme and whatsnew files > that look terrible in its installer (because it also performs wrapping > an

Re: [fpc-pascal] Separate release cycle for RTL and compiler proposal

2021-04-19 Thread Michael Van Canneyt via fpc-pascal
On Mon, 19 Apr 2021, Jonas Maebe via fpc-pascal wrote: On 19/04/2021 07:59, Michael Van Canneyt via fpc-pascal wrote: But MacOS is a problem. macOS is also perfectly scriptable, I just have to finish automating it. I didn't mean to imply that it is not scriptable. But it's a problem

Re: [fpc-pascal] Separate release cycle for RTL and compiler proposal

2021-04-18 Thread Michael Van Canneyt via fpc-pascal
On Mon, 19 Apr 2021, Karoly Balogh via fpc-pascal wrote: Hi, On Mon, 19 Apr 2021, Sven Barth via fpc-pascal wrote: Am 18.04.2021 um 23:29 schrieb Zamrony P. Juhara via fpc-pascal: I would like to propose to separate RTL release  from compiler release so that RTL bug fixes and features can

Re: [fpc-pascal] Documentation patch for fcl/netdb

2021-04-17 Thread Michael Van Canneyt via fpc-pascal
Thank you. I will check it out ASAP. Before publishing, I will need to document all identifiers in the unit. Michael. On Sat, 17 Apr 2021, Noel Duffy via fpc-pascal wrote: I've added a documentation patch to bug 0037906 in the bug tracker. This covers the new code that I added to

Re: [fpc-pascal] Trouble integrating examples into fpcdoc

2021-04-05 Thread Michael Van Canneyt via fpc-pascal
On Mon, 5 Apr 2021, Noel Duffy via fpc-pascal wrote: In the fpcdocs subversion project, there are a number of example directories each containing one or more small programs and a Makefile. My question is, is that Makefile automatically generated, or is it hand-crafted? It is hand-crafted.

Re: [fpc-pascal] Pass type as function parameter

2021-03-24 Thread Michael Van Canneyt via fpc-pascal
On Wed, 24 Mar 2021, Darius Blaszyk via fpc-pascal wrote: Hi, Would it be possible in FPC to pass a type of a variable as a parameter to a function? e.g. MyFunction(integer); I have legacy C code that does this via a macro. Hopefully, it can be done so I do not need to change the existing

Re: [fpc-pascal] fpreport: can not use two ObjectLists as datasource in one report

2021-03-19 Thread Michael Van Canneyt via fpc-pascal
On Fri, 19 Mar 2021, Andreas Frieß via fpc-pascal wrote: Am 19.03.2021 um 13:34 schrieb Michael Van Canneyt via fpc-pascal: On Fri, 19 Mar 2021, Andreas Frieß via fpc-pascal wrote: If it is not a bug, so a featurerequest must be possible, because other reports can handle this without

Re: [fpc-pascal] fpreport: can not use two ObjectLists as datasource in one report

2021-03-19 Thread Michael Van Canneyt via fpc-pascal
On Fri, 19 Mar 2021, Andreas Frieß via fpc-pascal wrote: Am 19.03.2021 um 11:07 schrieb Michael Van Canneyt via fpc-pascal: On Fri, 19 Mar 2021, Michael Van Canneyt via fpc-pascal wrote: On Fri, 19 Mar 2021, Andreas Frieß via fpc-pascal wrote: Make a Report Preview -> o

Re: [fpc-pascal] fpreport: can not use two ObjectLists as datasource in one report

2021-03-19 Thread Michael Van Canneyt via fpc-pascal
On Fri, 19 Mar 2021, Michael Van Canneyt via fpc-pascal wrote: On Fri, 19 Mar 2021, Andreas Frieß via fpc-pascal wrote: Make a Report Preview -> only the contend of the first dataset is shown. I will file a bug No need, because this is as designed. For clarity: it's as desig

Re: [fpc-pascal] fpreport: can not use two ObjectLists as datasource in one report

2021-03-19 Thread Michael Van Canneyt via fpc-pascal
On Fri, 19 Mar 2021, Andreas Frieß via fpc-pascal wrote: Make a Report Preview -> only the contend of the first dataset is shown. I will file a bug No need, because this is as designed. Michael.___ fpc-pascal maillist -

Re: [fpc-pascal] fpreport: can not use two ObjectLists as datasource in one report

2021-03-18 Thread Michael Van Canneyt via fpc-pascal
On Thu, 18 Mar 2021, Andreas Frieß via fpc-pascal wrote: The expected layout is in the demo. 'Expected layout' for me is a PDF, screenshot image of some finished document, showing what you want to see printed. I have data inside of ObjectsList=OL (here in the demo two) and i want to

Re: [fpc-pascal] fpreport: can not use two ObjectLists as datasource in one report

2021-03-18 Thread Michael Van Canneyt via fpc-pascal
On Thu, 18 Mar 2021, Andreas Frieß via fpc-pascal wrote: I have a sample attached to show the problem. I want in the report (created a runtime) to use more than one report datasource. I create a databand and connect this with a TFPReportObjectListData object. Each TFPReportObjectListData

Re: [fpc-pascal] Pull request for fphttpclient.pp in git mirror repo

2021-03-16 Thread Michael Van Canneyt via fpc-pascal
On Tue, 16 Mar 2021, Graeme Geldenhuys via fpc-pascal wrote: On 16/03/2021 9:29 pm, Martin Frb via fpc-pascal wrote: For none git users, githup offers patch/diff Ah yes, I forgot to mention that. Thanks Martin. Applied in Rev. 48992, so you can close it. And thank the original

Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Michael Van Canneyt via fpc-pascal
On Sun, 14 Mar 2021, Sven Barth via fpc-pascal wrote: On Sun, Mar 14, 2021 at 4:15 PM Michael Van Canneyt via fpc-pascal wrote: Fixed. Thanks for the patch. There was a second issue, which is now also fixed. You set target to fpc 4.0 The simple patch I made can be backported/merged

Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Michael Van Canneyt via fpc-pascal
On Sun, 14 Mar 2021, Bart via fpc-pascal wrote: On Sun, Mar 14, 2021 at 4:15 PM Michael Van Canneyt via fpc-pascal wrote: Fixed. Thanks for the patch. There was a second issue, which is now also fixed. You set target to fpc 4.0 The simple patch I made can be backported/merged to 3.2

Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Michael Van Canneyt via fpc-pascal
On Sun, 14 Mar 2021, Bart via fpc-pascal wrote: On Sun, Mar 14, 2021 at 2:55 PM Bart wrote: I think I have a fix, will report it. Reported as https://bugs.freepascal.org/view.php?id=38622 Possible patch attached in the bugreport. Fixed. Thanks for the patch. There was a second issue,

Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Michael Van Canneyt via fpc-pascal
On Sun, 14 Mar 2021, Bart via fpc-pascal wrote: On Sun, Mar 14, 2021 at 12:43 AM Michael Van Canneyt via fpc-pascal wrote: > Do I misunderstand the purpose of this function or is this a bug? Seems like a bug. I'll report it then. Do you know if we have a test suite for this function,

Re: [fpc-pascal] JSONStringToString question

2021-03-13 Thread Michael Van Canneyt via fpc-pascal
On Sat, 13 Mar 2021, Bart via fpc-pascal wrote: From : https://www.freepascal.org/docs-html/current/fcl/fpjson/jsonstringtostring.html Function result Pascal string with escaped characters replaced {$mode objfpc} {$h+} uses fpjson; var S1, S2: TJSONStringType; begin repeat

Re: [fpc-pascal] Smart-linking versus Whole Program Optimization

2021-03-10 Thread Michael Van Canneyt via fpc-pascal
On Wed, 10 Mar 2021, Jonas Maebe via fpc-pascal wrote: On 10/03/2021 14:33, LacaK via fpc-pascal wrote: It will be nice have this in documentation. For example in https://www.freepascal.org/docs-html/prog/progse30.html#x195-207.3 At least explain: - relation of -CX and -XX Indeed. I

Re: [fpc-pascal] Unicode chars losing information

2021-03-09 Thread Michael Van Canneyt via fpc-pascal
On Tue, 9 Mar 2021, Florian Klämpfl via fpc-pascal wrote: By using the necessary IFDEF mechanism in the config file, we can avoid inserting it for windows (which does not need it) or the smaller embedded platforms (which cannot handle it). People that don't need/want this can remove the

Re: [fpc-pascal] Unicode chars losing information

2021-03-09 Thread Michael Van Canneyt via fpc-pascal
On Tue, 9 Mar 2021, Mattias Gaertner via fpc-pascal wrote: On Tue, 9 Mar 2021 08:04:54 +0100 Sven Barth via fpc-pascal wrote: [...] FPC is not Java. In FPC you have more fine-grained control over the resulting binary than "install big, fat runtime". Not to mention that FPC can target

Re: [fpc-pascal] Cannot write datetime field on sqlite3 database on ARM

2021-03-09 Thread Michael Van Canneyt via fpc-pascal
On Tue, 9 Mar 2021, Toru Takubo via fpc-pascal wrote: thank you for the test program. I tested on linux 64-bit, that works OK too. When you look in the database on the arm machine  with an sqlite tool, do you see the correct values or are the inserted values wrong ? (I'm trying to

Re: [fpc-pascal] Unicode chars losing information

2021-03-09 Thread Michael Van Canneyt via fpc-pascal
On Tue, 9 Mar 2021, Graeme Geldenhuys via fpc-pascal wrote: On 09/03/2021 1:44 am, Tomas Hajny via fpc-pascal wrote: UnicodeString may be used in a program simply because the included unit has it used in its interface. That may be the case even if there's no use of characters outside of US

Re: [fpc-pascal] Cannot write datetime field on sqlite3 database on ARM

2021-03-09 Thread Michael Van Canneyt via fpc-pascal
On Tue, 9 Mar 2021, Toru Takubo via fpc-pascal wrote: I don't know what to advise to further investigate the issue, One thing to try would be to test whether normal float arithmetic or date arithmetic works. If not, then the compiler people will need to give more advice. I created a

Re: [fpc-pascal] Unicode chars losing information

2021-03-08 Thread Michael Van Canneyt via fpc-pascal
On Tue, 9 Mar 2021, Graeme Geldenhuys via fpc-pascal wrote: On 08/03/2021 2:49 pm, Michael Van Canneyt via fpc-pascal wrote: In that sense, unicode conversion support is something optional and so we require you to enable it explicitly, since enabling it has some drawbacks: Surely if you

Re: [fpc-pascal] Unicode chars losing information

2021-03-08 Thread Michael Van Canneyt via fpc-pascal
On Mon, 8 Mar 2021, Martin Frb via fpc-pascal wrote: Obviously knowing the presence/absence of a widestring manager allows to refine warnings. It does not. The compiler has no way to know if the widestring manager actually does a complete or even a good job. Maybe it just does logging and

Re: [fpc-pascal] Unicode chars losing information

2021-03-08 Thread Michael Van Canneyt via fpc-pascal
On Mon, 8 Mar 2021, Tomas Hajny via fpc-pascal wrote: On 2021-03-08 15:49, Michael Van Canneyt via fpc-pascal wrote: On Mon, 8 Mar 2021, Adriaan van Os via fpc-pascal wrote: Michael Van Canneyt via fpc-pascal wrote: You didn't configure your environment to deal correctly with Unicode

Re: [fpc-pascal] Unicode chars losing information

2021-03-08 Thread Michael Van Canneyt via fpc-pascal
On Mon, 8 Mar 2021, Adriaan van Os via fpc-pascal wrote: Michael Van Canneyt wrote: The output for me is the same, regardless of the -FcUTF-8 flag being present or not: question marks. But if I add uses cwstring; all will be well. Rationale: Without that, the RTL cannot convert

Re: [fpc-pascal] Unicode chars losing information

2021-03-08 Thread Michael Van Canneyt via fpc-pascal
On Mon, 8 Mar 2021, Adriaan van Os via fpc-pascal wrote: adriaan% cat uniquizz-utf8.pas {$codepage utf8} program uniquizz; var chars: UnicodeString; begin chars := '⌘ key'; writeln(chars); writeln(chars[1]); writeln( 'size ', sizeOf( chars)); writeln( 'length ', length( chars));

Re: [fpc-pascal] Cannot write datetime field on sqlite3 database on ARM

2021-03-07 Thread Michael Van Canneyt via fpc-pascal
On Mon, 8 Mar 2021, Toru Takubo via fpc-pascal wrote: Hi, I am developing my app on Windows and building apps for other platforms by using cross compiler. Now I have a problem only occurred on Linux ARM. The problem is that it cannot write datetime field on sqlite3 database. It can

Re: [fpc-pascal] Traits Proposal

2021-02-14 Thread Michael Van Canneyt via fpc-pascal
On Sun, 14 Feb 2021, Sven Barth via fpc-pascal wrote: Am 14.02.2021 um 13:30 schrieb Michael Van Canneyt via fpc-pascal: On Sun, 14 Feb 2021, Sven Barth via fpc-pascal wrote: So whether it be this, or just an improvement on the Interfaces we already have, I'd definitely personally

Re: [fpc-pascal] Traits Proposal

2021-02-14 Thread Michael Van Canneyt via fpc-pascal
On Sun, 14 Feb 2021, Ryan Joseph via fpc-pascal wrote: On Feb 14, 2021, at 5:30 AM, Michael Van Canneyt via fpc-pascal wrote: Interfaces means an extra object per interface, so more objects on the heap with all the extra memory management that implies. You mean COM interfaces? I've

Re: [fpc-pascal] Traits Proposal

2021-02-14 Thread Michael Van Canneyt via fpc-pascal
On Sun, 14 Feb 2021, Sven Barth via fpc-pascal wrote: So whether it be this, or just an improvement on the Interfaces we already have, I'd definitely personally be in favor of something that "works like Interfaces except minus the negative performance implications." There are no

Re: [fpc-pascal] Traits Proposal

2021-02-10 Thread Michael Van Canneyt via fpc-pascal
On Wed, 10 Feb 2021, Ryan Joseph via fpc-pascal wrote: On Feb 10, 2021, at 8:41 AM, Michael Van Canneyt wrote: I heavily object to this; We have way too much keywords as it is already. So unless there really is no other way I don't think we should introduce even more. I guess the

Re: [fpc-pascal] Traits Proposal

2021-02-10 Thread Michael Van Canneyt via fpc-pascal
On Wed, 10 Feb 2021, Ryan Joseph via fpc-pascal wrote: On Feb 10, 2021, at 12:32 AM, Michael Van Canneyt via fpc-pascal wrote: Instead of trait you might as well use simply "object", so basically we could simply state that instead of an interface, you can also specify

Re: [fpc-pascal] Traits Proposal

2021-02-09 Thread Michael Van Canneyt via fpc-pascal
On Tue, 9 Feb 2021, Ryan Joseph via fpc-pascal wrote: We had talked about this some time ago and it's been rattling around in my brain so I wanted to write it down into a formal proposal where we can discuss it and hopefully agree upon a syntax. Everything is preliminary and tentative but

Re: [fpc-pascal] Value:x:y syntax

2021-02-09 Thread Michael Van Canneyt via fpc-pascal
On Tue, 9 Feb 2021, Luis Henrique via fpc-pascal wrote: At https://lists.freepascal.org/pipermail/fpc-devel/2021-February/043569.html I saw the syntax "value: x: y". str(value:6:3, valuestr); What is the name of this and where is it documented? It is documented in the official

Re: [fpc-pascal] How to handle fpc.cfg on Ubuntu with 3.0.4 and 3.2.0 co-existing?

2021-02-06 Thread Michael Van Canneyt via fpc-pascal
On Sat, 6 Feb 2021, Bo Berglund via fpc-pascal wrote: FPC versions. Graeme thanks for the info! Since I am not doing any fpc or lazarus development I guess I don't really need all of that.. My .fpc.cfg file also has the $fpcversion everywhere in the paths so I guess that unless a new

Re: [fpc-pascal] Statically linked-in fpc code

2021-02-05 Thread Michael Van Canneyt via fpc-pascal
On Fri, 5 Feb 2021, Michael Van Canneyt via fpc-pascal wrote: On Fri, 5 Feb 2021, Sven Barth via fpc-pascal wrote: Adriaan van Os via fpc-pascal schrieb am Fr., 5. Feb. 2021, 10:50: Adriaan van Os via fpc-pascal wrote: Jonas Maebe via fpc-pascal wrote: On 2021-02-05 09:24, Adriaan

Re: [fpc-pascal] Statically linked-in fpc code

2021-02-05 Thread Michael Van Canneyt via fpc-pascal
On Fri, 5 Feb 2021, Sven Barth via fpc-pascal wrote: Adriaan van Os via fpc-pascal schrieb am Fr., 5. Feb. 2021, 10:50: Adriaan van Os via fpc-pascal wrote: Jonas Maebe via fpc-pascal wrote: On 2021-02-05 09:24, Adriaan van Os via fpc-pascal wrote: It's crazy !

Re: [fpc-pascal] Patches for Issue #37906 - DNS over TCP

2021-01-30 Thread Michael Van Canneyt via fpc-pascal
On Sat, 30 Jan 2021, Sven Barth via fpc-pascal wrote: In addition to new code for DNS over TCP, this latest set of patches adds checks for writes beyond buffer boundaries and other potential security issues. Since the last update I've also added support for SRV records, as defined in RFC

Re: [fpc-pascal] Patches for Issue #37906 - DNS over TCP

2021-01-30 Thread Michael Van Canneyt via fpc-pascal
On Sat, 30 Jan 2021, Noel Duffy via fpc-pascal wrote: On 30/01/21 9:45 pm, Michael Van Canneyt via fpc-pascal wrote: On Sat, 30 Jan 2021, Noel Duffy via fpc-pascal wrote: I've added patches to resolve issue #37906, DNS over TCP, to the bug tracker: https://bugs.freepascal.org/view.php

Re: [fpc-pascal] Patches for Issue #37906 - DNS over TCP

2021-01-30 Thread Michael Van Canneyt via fpc-pascal
On Sat, 30 Jan 2021, Noel Duffy via fpc-pascal wrote: I've added patches to resolve issue #37906, DNS over TCP, to the bug tracker: https://bugs.freepascal.org/view.php?id=37906 I've broken the changes into three patches: 1. netdb.patch, which updates packages/fcl-net/src/netdb.pp, adding

Re: [fpc-pascal] fcl-web: Trequest.RemoteAddr is empty (sometimes)

2021-01-12 Thread Michael Van Canneyt via fpc-pascal
On Tue, 12 Jan 2021, Luca Olivetti via fpc-pascal wrote: El 12/1/21 a les 10:24, Michael Van Canneyt via fpc-pascal ha escrit: Am I right thinking that, even if several copies of the above method are running, each will get it's own local variables, so the LocCommandQueue variable

Re: [fpc-pascal] fcl-web: Trequest.RemoteAddr is empty (sometimes)

2021-01-12 Thread Michael Van Canneyt via fpc-pascal
On Tue, 12 Jan 2021, Luca Olivetti via fpc-pascal wrote: El 8/1/21 a les 11:14, Luca Olivetti via fpc-pascal ha escrit: El 8/1/21 a les 11:06, Michael Van Canneyt via fpc-pascal ha escrit: Are you using https ? No, plain text http. An even weirder fact is that I seem to get the wrong ip

Re: [fpc-pascal] SQLDB: Set port in TSQLConnector

2021-01-12 Thread Michael Van Canneyt via fpc-pascal
On Mon, 11 Jan 2021, Virgo Pärna via fpc-pascal wrote: On Fri, 08 Jan 2021 14:25:09 -0300, Luis - SoftSAT Sistemas via fpc-pascal wrote: I'm trying to connect to a Firebird database with TSQLConnector, but I can't seem to find a way to set the port number. Looking at TIBConnection, there

Re: [fpc-pascal] fcl-web: Trequest.RemoteAddr is empty (sometimes)

2021-01-08 Thread Michael Van Canneyt via fpc-pascal
On Fri, 8 Jan 2021, Luca Olivetti via fpc-pascal wrote: El 7/1/21 a les 16:59, Luca Olivetti via fpc-pascal ha escrit: El 7/1/21 a les 16:15, Luca Olivetti via fpc-pascal ha escrit: Hello, I need to tailor the content based on the remote ip address. I use the property RemoteAddr of a

Re: [fpc-pascal] FPDoc now with Markdown support

2021-01-04 Thread Michael Van Canneyt via fpc-pascal
On Mon, 4 Jan 2021, Bo Berglund via fpc-pascal wrote: On Sat, 2 Jan 2021 15:31:11 +0100 (CET), Michael Van Canneyt via fpc-pascal wrote: Hello ! I didn't make it quite in time for the new year, but still: The fpdoc engine (what is used to document the FPC & Lazarus units) is

Re: [fpc-pascal] FPDoc now with Markdown support

2021-01-02 Thread Michael Van Canneyt via fpc-pascal
On Sat, 2 Jan 2021, Marco van de Voort via fpc-pascal wrote: Op 2021-01-02 om 15:31 schreef Michael Van Canneyt via fpc-pascal: Hello ! I didn't make it quite in time for the new year, but still: The fpdoc engine (what is used to document the FPC & Lazarus units) is now cap

[fpc-pascal] FPDoc now with Markdown support

2021-01-02 Thread Michael Van Canneyt via fpc-pascal
Hello ! I didn't make it quite in time for the new year, but still: The fpdoc engine (what is used to document the FPC & Lazarus units) is now capable of outputting the documentation in markdown. This can be used as input for mkdocs or another engine such as sphinx. As a first engine, I

Re: [fpc-pascal] bug or feature

2021-01-01 Thread Michael Van Canneyt via fpc-pascal
On Fri, 1 Jan 2021, Mattias Gaertner via fpc-pascal wrote: Hi, library test; procedure Test; begin end; exports Test name 3 'abc'; //^^^ end. I think this is a bug. Delphi also barfs on it. However the following does work: exports Test index 1 name 'abc'; Although

<    1   2   3   4   5   >