Re: [fpc-pascal] Parse unicode scalar

2023-07-02 Thread Mattias Gaertner via fpc-pascal
On Mon, 3 Jul 2023 11:58:33 +0700 Hairy Pixels via fpc-pascal wrote: > > On Jul 3, 2023, at 11:43 AM, Mattias Gaertner via fpc-pascal > > wrote: > > > > There is a header byte. > > > > It depends, if you want to check for invalid UTF-8 sequences. >

Re: [fpc-pascal] Parse unicode scalar

2023-07-03 Thread Mattias Gaertner via fpc-pascal
On Mon, 3 Jul 2023 14:12:03 +0700 Hairy Pixels via fpc-pascal wrote: > > On Jul 3, 2023, at 2:04 PM, Tomas Hajny via fpc-pascal > > wrote: > > > > No - in this case, the "header" is the highest bit of that byte > > being 0. > > Oh it's the header BIT. Admittedly I don't understand how this >

Re: [fpc-pascal] Parse unicode scalar

2023-07-03 Thread Mattias Gaertner via fpc-pascal
On Mon, 3 Jul 2023 12:01:11 +0700 Hairy Pixels via fpc-pascal wrote: > > On Jul 3, 2023, at 11:36 AM, Mattias Gaertner via fpc-pascal > > wrote: > > > > Useless array of. > > And it does not return the bytecount. > > it's an open array so what's

Re: [fpc-pascal] Parse unicode scalar

2023-07-03 Thread Mattias Gaertner via fpc-pascal
On Mon, 3 Jul 2023 15:27:10 +0700 Hairy Pixels via fpc-pascal wrote: >[...] > I was just curious how ChatGPTs implementation compared to other > programmer. Apparently the quality is often terrible. But it can be useful. > What I'm really trying to do is improve a parser so it can read UTF-8

[fpc-pascal] Lazarus Release Candidate 1 of 3.0

2023-07-03 Thread Mattias Gaertner via fpc-pascal
The Lazarus team is glad to announce the first release candidate of Lazarus 3.0. This release was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_3.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.2.2 Here

Re: [fpc-pascal] Parse unicode scalar

2023-07-03 Thread Mattias Gaertner via fpc-pascal
On Mon, 3 Jul 2023 17:18:56 +0700 Hairy Pixels via fpc-pascal wrote: >[...] > > First of all: Is it valid UTF-8 or do you have to check for broken > > or malicious sequences? > > If they give the parser broken files that's their problem they need > to fix? the user has control over the file so

[fpc-pascal] Lazarus Release Candidate 2 of 3.0

2023-10-16 Thread Mattias Gaertner via fpc-pascal
The Lazarus team is glad to announce the second release candidate of Lazarus 3.0. This release was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_3.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.2.2

[fpc-pascal] fcl-pdf custom font from memstream

2023-11-02 Thread Mattias Gaertner via fpc-pascal
Hi, How to load a custom font from a stream instead of from a file? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fcl-pdf custom font from memstream

2023-11-02 Thread Mattias Gaertner via fpc-pascal
On 02.11.23 13:38, Alexey Torgashin via fpc-pascal wrote: How to load a custom font from a stream instead of from a file? Currently no way to my knowledge, But fpparsettf.pp has this:   TTFFileInfo = class(TObject)   ...   public     // Load a TTF file from file or stream.     Proce

Re: [fpc-pascal] fcl-pdf custom font from memstream

2023-11-02 Thread Mattias Gaertner via fpc-pascal
On 02.11.23 14:00, Michael Van Canneyt via fpc-pascal wrote: On Thu, 2 Nov 2023, Alexey Torgashin via fpc-pascal wrote: How to load a custom font from a stream instead of from a file? Currently no way to my knowledge, But fpparsettf.pp has this:  TTFFileInfo = class(TObject)  ...  pu

Re: [fpc-pascal] fcl-pdf custom font from memstream

2023-11-02 Thread Mattias Gaertner via fpc-pascal
On 02.11.23 16:58, Michael Van Canneyt via fpc-pascal wrote: [...] Yes, absolutely. But we may need a ref. counting mechanism then. Or at least we need to decide who 'owns' the streams; At first sight it seems to me the gTTFontCache should own all font streams. Yes. On second thought, mayb

Re: [fpc-pascal] fcl-pdf custom font from memstream

2023-11-02 Thread Mattias Gaertner via fpc-pascal
On 02.11.23 16:42, Mattias Gaertner via fpc-pascal wrote: On 02.11.23 14:00, Michael Van Canneyt via fpc-pascal wrote: On Thu, 2 Nov 2023, Alexey Torgashin via fpc-pascal wrote: How to load a custom font from a stream instead of from a file? Currently no way to my knowledge, But

Re: [fpc-pascal] method-definition

2023-12-15 Thread Mattias Gaertner via fpc-pascal
On 15.12.23 16:00, Martin Frb via fpc-pascal wrote: [...] However, a method can be reintroduced, and be virtual/abstract. type   TFoo = class     procedure Bar; virtual; abstract;   end;   TFoo2 = class(TFoo)     procedure Bar; reintroduce; virtual; abstract;   end; Can that make sen

[fpc-pascal] Lazarus Release 3.0

2023-12-21 Thread Mattias Gaertner via fpc-pascal
The Lazarus team is glad to announce the release of Lazarus 3.0. This release was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_3.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.2.2 Here is the list of

[fpc-pascal] Lazarus Bugfix Release 3.2

2024-02-28 Thread Mattias Gaertner via fpc-pascal
The Lazarus team is glad to announce the release of Lazarus 3.2. This is a bugfix release and was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_3.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.2.2 Her

Re: [fpc-pascal] fpc-pascal Digest, Vol 236, Issue 35

2024-03-01 Thread Mattias Gaertner via fpc-pascal
On 29.02.24 19:21, Jos Wegman via fpc-pascal wrote: The packages for the Lazarus mac OS x86-64 Lazarus 3.2 on sourceforge are not correct. There is no compiler package. Instead there are two fpc src packages. Just a heads-up. Thanks for the hint. I uploaded the package. Mattias Op do

[fpc-pascal] class constructor exception

2024-04-22 Thread Mattias Gaertner via fpc-pascal
Hi, When an exception is raised in a class constructor the application aborts without any error. How can I get an error? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pa

Re: [fpc-pascal] class constructor exception

2024-04-23 Thread Mattias Gaertner via fpc-pascal
On 23.04.24 09:32, Andrey Zubarev via fpc-pascal wrote: Hi, Set ExceptProc to your handler in unit initialization section in unit usesed before the problematic one? It is set by lcl TApplication. Just found out: It works with other exceptions, but not with EAbort. And that indeed creates a

[fpc-pascal] download site and mixed http

2024-04-25 Thread Mattias Gaertner via fpc-pascal
Hi, On https://www.freepascal.org/down/x86_64/linux-hungary.html are links without "https://";, causing the browser to bark: "File not downloaded: Potential security risk". Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://

[fpc-pascal] Lazarus Bugfix Release 3.4

2024-05-29 Thread Mattias Gaertner via fpc-pascal
The Lazarus team is glad to announce the release of Lazarus 3.4. This is a bugfix release and was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_3.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.2.2 Her

Re: [fpc-pascal] FPGUI on Windows

2024-11-30 Thread Mattias Gaertner via fpc-pascal
On 11/29/24 22:58, James Richters via fpc-pascal wrote: [...] Next I thought I would try FPCUPDELUXE, so I used it to install a fresh copy of 3.2.2 and then went to modules to install FPGUI it seems like it's going to work, but then it gets an error: Exception: EInOutError. File not open May

[fpc-pascal] pointer type as procedure arg

2024-12-30 Thread Mattias Gaertner via fpc-pascal
Hi, Are anonymous (aka local) pointer types allowed in procedure arguments in any mode? procedure Run(p: ^word); begin end; I found that the fcl-passrc parser has a test to allow it and I'm wondering if this is by design or a bug. Mattias ___ fpc

[fpc-pascal] Lazarus Bugfix Release 3.8

2025-01-22 Thread Mattias Gaertner via fpc-pascal
The Lazarus team is glad to announce the release of Lazarus 3.8. This is a bugfix release and was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_3.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.2.2 Her

[fpc-pascal] Lazarus Release Candidate 2 of 4.0

2025-01-09 Thread Mattias Gaertner via fpc-pascal
The Lazarus team is glad to announce the second release candidate of Lazarus 4.0. This release was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_4.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.2.2 H

Re: [fpc-pascal] rtl-generics

2025-02-08 Thread Mattias Gaertner via fpc-pascal
On 2/8/25 11:45, Guillermo Martínez Jiménez via fpc-pascal wrote: Seeing the error line (FItems: ^TArray;) I think it's fpdoc's fault. Seems that it doesn't recognize it as a specialization and gets confused by finding a '<' character out of place (from it's point of view). Please create an

[fpc-pascal] Lazarus Release Candidate 3 of 4.0

2025-03-25 Thread Mattias Gaertner via fpc-pascal
The Lazarus team is glad to announce the third release candidate of Lazarus 4.0. This release was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_4.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.2.2 He

Re: [fpc-pascal] Adding Javascript to Pascal

2025-02-24 Thread Mattias Gaertner via fpc-pascal
On 2/21/25 12:04, Anthony Walter via fpc-pascal wrote: [...] Javascript: let data = { name: "James", age: 25 }; function update(name) { data.name = name; } function verify(note) { console.log("received note " + note); console.log("data name is " + data.name); hello(data, " messa

Re: [fpc-pascal] Lazarus Release Candidate 3 of 4.0

2025-03-25 Thread Mattias Gaertner via fpc-pascal
On 3/25/25 15:02, Martin Guy via fpc-pascal wrote: On 25/03/25 13:55, Mattias Gaertner via fpc-pascal wrote: The Lazarus team is glad to announce the third release candidate of Lazarus 4.0. What is Lazarus? I have been unable to find anything on its web sites that say what it is or what it

[fpc-pascal] Checksum changed bug 15218

2025-06-17 Thread Mattias Gaertner via fpc-pascal
Hi, What is the state of the bug 15128, that is the infamous checksum changed bug: https://gitlab.com/freepascal.org/lazarus/ccr/-/issues/15218 In the issue Jonas wrote that the only case is a forward function that implements as "external". But I have never found such a function. Is there

[fpc-pascal] Lazarus Release 4.2

2025-07-22 Thread Mattias Gaertner via fpc-pascal
The Lazarus team is glad to announce the release of Lazarus 4.2. This is a bugfix release and was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free Pascal: https://wiki.lazarus.freepascal.org/Lazarus_4.0_release_notes https://wiki.lazarus.freepascal.org/User_Changes_3.2.2 H

Re: [fpc-pascal] fpc 3.3.1 compile on darwin aarch64 broken?

2025-08-01 Thread Mattias Gaertner via fpc-pascal
Thank You! Works. On 8/1/25 15:52, Michael Van Canneyt via fpc-pascal wrote: Hi, I applied a patch that should fix the issue. Michael. On Fri, 1 Aug 2025, Mattias Gaertner via fpc-pascal wrote: Hi, Compiling fpc 3.3.1 with fpc 3.2.2 as starting compiler on macos 15.5 aarch64 stops on

[fpc-pascal] fpc 3.3.1 compile on darwin aarch64 broken?

2025-08-01 Thread Mattias Gaertner via fpc-pascal
Hi, Compiling fpc 3.3.1 with fpc 3.2.2 as starting compiler on macos 15.5 aarch64 stops on linking fppkg: Target OS: Darwin for AArch64 Compiling fppkg/fppkg.pp Assembling fppkg Linking fppkg/bin/aarch64-darwin/fppkg Error: Error while linking Fatal: There were 1 errors compiling module, stopp

<    1   2   3