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

Noel Duffy noelduffy at xtra.co.nz
Mon Dec 27 22:02:04 CET 2021


On 28/12/21 04:39, Bart via lazarus wrote:
> On Mon, Dec 27, 2021 at 3:41 PM Juha Manninen via lazarus
> <lazarus at lists.lazarus-ide.org> 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 function returns grabage for just a single
> '€', the code for that should not enter the pasrt where it handles
> blocks of size PtrInt and does masking with EIGHTYMASK etc.
It's not just the euro, though. It's any utf-8 sequence.



More information about the lazarus mailing list