Re: [fpc-pascal] How to build for arm6 in RaspberryPi on arm7?

2020-09-09 Thread Bo Berglund via fpc-pascal
On Wed, 09 Sep 2020 17:34:14 +0200, Tomas Hajny via fpc-pascal wrote: >> Question: >> Can I make a parallel installation of FPC and Lazarus on my RPi4 which >> is using the Armv6 settings during the make and thus get a system that >> will produce compatible programs? >> >> Or do I have to scrap

Re: [fpc-pascal] String literals and code page of .pas source file

2020-09-09 Thread Tomas Hajny via fpc-pascal
On 2020-09-09 17:59, Mattias Gaertner via fpc-pascal wrote: On Wed, 09 Sep 2020 17:44:11 +0200 Tomas Hajny via fpc-pascal wrote: . . The implicit conversion is explicitly expected by the user in this case if I understand it correctly (source in CP1250), right? If you mean the "non implicit

Re: [fpc-pascal] String literals and code page of .pas source file

2020-09-09 Thread Jonas Maebe via fpc-pascal
On 09/09/2020 17:37, Mattias Gaertner via fpc-pascal wrote: > On Wed, 09 Sep 2020 17:25:09 +0200 > Tomas Hajny via fpc-pascal wrote: > >> On 2020-09-09 13:51, LacaK via fpc-pascal wrote: >> [...] >> A simple question - is TLabel.Caption declared as Utf8String (I don't >> use Lazarus)? _Then_ it

Re: [fpc-pascal] String literals and code page of .pas source file

2020-09-09 Thread Mattias Gaertner via fpc-pascal
On Wed, 09 Sep 2020 17:44:11 +0200 Tomas Hajny via fpc-pascal wrote: > On 2020-09-09 17:37, Mattias Gaertner via fpc-pascal wrote: > > On Wed, 09 Sep 2020 17:25:09 +0200 > > Tomas Hajny via fpc-pascal wrote: > > > >> On 2020-09-09 13:51, LacaK via fpc-pascal wrote: > >> [...] > >> A simple qu

Re: [fpc-pascal] String literals and code page of .pas source file

2020-09-09 Thread Tomas Hajny via fpc-pascal
On 2020-09-09 17:37, Mattias Gaertner via fpc-pascal wrote: On Wed, 09 Sep 2020 17:25:09 +0200 Tomas Hajny via fpc-pascal wrote: On 2020-09-09 13:51, LacaK via fpc-pascal wrote: [...] A simple question - is TLabel.Caption declared as Utf8String (I don't use Lazarus)? _Then_ it should work with

Re: [fpc-pascal] String literals and code page of .pas source file

2020-09-09 Thread Tomas Hajny via fpc-pascal
On 2020-09-09 17:30, Bart via fpc-pascal wrote: On Wed, Sep 9, 2020 at 5:25 PM Tomas Hajny via fpc-pascal wrote: A simple question - is TLabel.Caption declared as Utf8String No. No wonder that the implicit conversion doesn't work then. Adding an explicit conversion would be another possib

Re: [fpc-pascal] String literals and code page of .pas source file

2020-09-09 Thread Mattias Gaertner via fpc-pascal
On Wed, 09 Sep 2020 17:25:09 +0200 Tomas Hajny via fpc-pascal wrote: > On 2020-09-09 13:51, LacaK via fpc-pascal wrote: >[...] > A simple question - is TLabel.Caption declared as Utf8String (I don't > use Lazarus)? _Then_ it should work without any issues and/or special > attention from users.

Re: [fpc-pascal] How to build for arm6 in RaspberryPi on arm7?

2020-09-09 Thread Tomas Hajny via fpc-pascal
On 2020-09-09 14:43, Bo Berglund via fpc-pascal wrote: On Wed, 09 Sep 2020 00:03:29 +0200, Bo Berglund via fpc-pascal wrote: No, it is on an RPi4 so it is ArmV7. In fact I have been told on the RPi forum RPi4 is Armv8 Armv6: Pi0, PiB, PiA+ Armv7: Pi2Bv1.1 Armv8: Pi2Bv1.2, Pi3, Pi4 But they c

Re: [fpc-pascal] String literals and code page of .pas source file

2020-09-09 Thread Bart via fpc-pascal
On Wed, Sep 9, 2020 at 5:25 PM Tomas Hajny via fpc-pascal wrote: > A simple question - is TLabel.Caption declared as Utf8String No. -- Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/lis

Re: [fpc-pascal] String literals and code page of .pas source file

2020-09-09 Thread Tomas Hajny via fpc-pascal
On 2020-09-09 13:51, LacaK via fpc-pascal wrote: > This is a bit counter intuitive to me. It is explained here: https://wiki.freepascal.org/Unicode_Support_in_Lazarus IMO "c4" case (c4: String1250 = 'áéíóčž';) is not fully explained. Probably what here happens is, that declared code page of c

Re: [fpc-pascal] How to build for arm6 in RaspberryPi on arm7?

2020-09-09 Thread Bo Berglund via fpc-pascal
On Wed, 09 Sep 2020 00:03:29 +0200, Bo Berglund via fpc-pascal wrote: >No, it is on an RPi4 so it is ArmV7. In fact I have been told on the RPi forum RPi4 is Armv8 Armv6: Pi0, PiB, PiA+ Armv7: Pi2Bv1.1 Armv8: Pi2Bv1.2, Pi3, Pi4 But they could not advice how to use a newer RPi (higher numbered ar

Re: [fpc-pascal] String literals and code page of .pas source file

2020-09-09 Thread LacaK via fpc-pascal
> This is a bit counter intuitive to me. It is explained here: https://wiki.freepascal.org/Unicode_Support_in_Lazarus IMO "c4" case (c4: String1250 = 'áéíóčž';) is not fully explained. Probably what here happens is, that declared code page of c4 = source file code page and in that case comp

Re: [fpc-pascal] String literals and code page of .pas source file

2020-09-09 Thread Juha Manninen via fpc-pascal
On Wed, Sep 9, 2020 at 11:40 AM Bart via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > This is a bit counter intuitive to me. It is explained here: https://wiki.freepascal.org/Unicode_Support_in_Lazarus For LacaK I recommend using UTF-8 encoding as much as possible. Then everything "*ju

Re: [fpc-pascal] String literals and code page of .pas source file

2020-09-09 Thread Bart via fpc-pascal
On Wed, Sep 9, 2020 at 8:37 AM LacaK via fpc-pascal wrote: > I am still confused how this CodePage aware stuff is expected to work and > when implicit conversios are included (as far as I understand here ONLY > declared/static codepage plays role) and when dynamic codepage is taken into > acco