Re: [Lazarus] Lazarus Release Candidate 2 of 2.2.0

2021-11-12 Thread Noel Duffy via lazarus
On 3/11/21 01:54, Mattias Gaertner via lazarus wrote: The Lazarus team is glad to announce the second release candidate of Lazarus 2.2. [...] Checksums for the SourceForge files: https://www.lazarus-ide.org/index.php?page=checksums#2_2_0RC2 The checksums page does not have any checksum for 2_

[Lazarus] UTF8LengthFast returning incorrect results on AARCH64 (MacOS)

2021-12-26 Thread Noel Duffy via lazarus
I need some help getting to the root of a problem with incorrect results on Apple hardware (M1, aarch64) for the function UTF8LengthFast in lazutf8. On MacOS, when given a string containing one or more UTF8 characters, UTF8LengthFast returns wildly incorrect results. On Fedora, the function re

Re: [Lazarus] UTF8LengthFast returning incorrect results on AARCH64 (MacOS)

2021-12-27 Thread Noel Duffy via lazarus
On 28/12/21 04:39, Bart via lazarus wrote: On Mon, Dec 27, 2021 at 3:41 PM Juha Manninen via lazarus wrote: It must be a Big endian / Little endian issue. IIRC it can be adjusted in ARM CPUs. Why do MacOS and Linux use a different setting there? I have no idea. On second thought: if the fun

Re: [Lazarus] UTF8LengthFast returning incorrect results on AARCH64 (MacOS)

2021-12-27 Thread Noel Duffy via lazarus
On 28/12/21 01:47, Juha Manninen via lazarus wrote: On Mon, Dec 27, 2021 at 1:44 AM Noel Duffy via lazarus < lazarus@lists.lazarus-ide.org> wrote: I need some help getting to the root of a problem with incorrect results on Apple hardware (M1, aarch64) for the function UTF8LengthFast in l

Re: [Lazarus] UTF8LengthFast returning incorrect results on AARCH64 (MacOS)

2021-12-27 Thread Noel Duffy via lazarus
On 28/12/21 07:21, Bart via lazarus wrote: On Mon, Dec 27, 2021 at 6:35 PM Marco van de Voort via lazarus wrote: The expression seems to be 1 when the top bits are 10 iow when it is a follow bytes of utf8, that is what the comment says, and I as far as I can see the signedness doesn't matter.

Re: [Lazarus] UTF8LengthFast returning incorrect results on AARCH64 (MacOS)

2021-12-28 Thread Noel Duffy via lazarus
On 29/12/21 01:26, Bart via lazarus wrote: fpc -al ulen.pas > This will produce the file ulen.s > You can attach or copy that here. File is attached. The output from running this program is: % ./ulen Signed version Len = -100663283 Unsigned version Len = 1 To add another wrinkle to this, th

Re: [Lazarus] fpc bug with M1 [[was: Re: UTF8LengthFast returning incorrect results on AARCH64 (MacOS)]]

2021-12-28 Thread Noel Duffy via lazarus
On 29/12/21 10:47, Martin Frb via lazarus wrote: On 28/12/2021 22:05, Noel Duffy via lazarus wrote: On 29/12/21 01:26, Bart via lazarus wrote: fpc -al ulen.pas > This will produce the file ulen.s > You can attach or copy that here. File is attached. Thanks. And I think there is a

Re: [Lazarus] Invalid project filename for project filenames containing a dash

2025-01-02 Thread Noel Duffy via lazarus
> On Thu, 2 Jan 2025 00:07:49 +0100, Mattias Gaertner wrote: > > On 1/1/25 23:37, Noel Duffy via lazarus wrote: >> Lazarus 3.6 on MacOS behaves strangely when attempting to save a project >> filename that contains a dash (-). It produces the error message: >>

[Lazarus] Invalid project filename for project filenames containing a dash

2025-01-01 Thread Noel Duffy via lazarus
Lazarus 3.6 on MacOS behaves strangely when attempting to save a project filename that contains a dash (-). It produces the error message: Invalid project filename "/Users/noelduffy/tmp/a-b.lpi" is an invalid project name. Please choose another (e.g. project1.lpi)” If the dash is removed, Lazaru