Re: [fpc-pascal] How to compile Lazarus program using only FPC?

2015-09-25 Thread Jonas Maebe
On 25/09/15 19:42, Mark Morgan Lloyd wrote: Lukasz Sokol wrote: This seems like a nice tutorial on X over SSH: http://elinux.org/RPi_Remote_Access (not tried myself YMMV) I'd have expected all necessary keys etc. to have been set up by default. Certainly with Raspbian I didn't have to create

Re: [fpc-pascal] How to compile Lazarus program using only FPC?

2015-09-25 Thread Mark Morgan Lloyd
Lukasz Sokol wrote: On 25/09/15 16:13, Bo Berglund wrote: On Fri, 25 Sep 2015 08:30:10 +, Mark Morgan Lloyd wrote: Bo Berglund wrote: If absolutely necessary I will have to set up the RPi with a monitor, keyboard and mouse and install Lazarus and compile from there. But RPi is not as pow

Re: [fpc-pascal] How to compile Lazarus program using only FPC?

2015-09-25 Thread Mark Morgan Lloyd
Bo Berglund wrote: On Fri, 25 Sep 2015 08:30:10 +, Mark Morgan Lloyd wrote: Bo Berglund wrote: If absolutely necessary I will have to set up the RPi with a monitor, keyboard and mouse and install Lazarus and compile from there. But RPi is not as powerful a computer as the PC and it will p

Re: [fpc-pascal] How to compile Lazarus program using only FPC?

2015-09-25 Thread Lukasz Sokol
On 25/09/15 16:13, Bo Berglund wrote: > On Fri, 25 Sep 2015 08:30:10 +, Mark Morgan Lloyd > wrote: > >> Bo Berglund wrote: >>> If absolutely necessary I will have to set up the RPi with a monitor, >>> keyboard and mouse and install Lazarus and compile from there. But RPi >>> is not as powerfu

Re: [fpc-pascal] How to compile Lazarus program using only FPC?

2015-09-25 Thread Bo Berglund
On Fri, 25 Sep 2015 08:30:10 +, Mark Morgan Lloyd wrote: >Bo Berglund wrote: >> If absolutely necessary I will have to set up the RPi with a monitor, >> keyboard and mouse and install Lazarus and compile from there. But RPi >> is not as powerful a computer as the PC and it will probably be ve

Re: [fpc-pascal] How to compile Lazarus program using only FPC?

2015-09-25 Thread Luiz Americo Pereira Camara
Em 24/09/2015 18:02, "Mattias Gaertner" escreveu: > > On Thu, 24 Sep 2015 16:21:31 +0100 > Graeme Geldenhuys wrote: > > > On 2015-09-24 16:14, Michael Van Canneyt wrote: > > Is lazbuild a pure console application? > > Yes. > > > If so, no problem, but my guess > > is that it still uses the LCL so

Re: [fpc-pascal] FileIO in FPC 3.0

2015-09-25 Thread Marco van de Voort
In our previous episode, Mattias Gaertner said: > Yes. I see invalid UTF-8 file names on Linux systems often (cannot be > converted to UTF-16). > > Are invalid UTF-16 file names under Windows really a practical > problem? > What program allows to create invalid UTF-16 file names? > With "invalid U

Re: [fpc-pascal] FileIO in FPC 3.0

2015-09-25 Thread Graeme Geldenhuys
On 2015-09-25 12:47, Marco van de Voort wrote: >> > (Now lets better not start about the encoding of Filenames on non-Windows >> > OS... :-)) > BSD/Linux afaik has the same problem. The filesystem is binary, not textual. > The textual aspect is only interpretation. Under FreeBSD and Solaris, when

Re: [fpc-pascal] FileIO in FPC 3.0

2015-09-25 Thread Mattias Gaertner
On Fri, 25 Sep 2015 13:47:22 +0200 (CEST) mar...@stack.nl (Marco van de Voort) wrote: >[...] > BSD/Linux afaik has the same problem. The filesystem is binary, not textual. > The textual aspect is only interpretation. Yes. I see invalid UTF-8 file names on Linux systems often (cannot be converted

Re: [fpc-pascal] FileIO in FPC 3.0

2015-09-25 Thread Marco van de Voort
In our previous episode, Andreas Dorn said: > Is it safe to pass the Filename to procedures from the RTL without risking > corruption? In theory no, but since mostly filenames will be passed to functions that have the same assumptions, I assume the only problem is if you put such a filename in a s

Re: [fpc-pascal] FileIO in FPC 3.0

2015-09-25 Thread Jonas Maebe
Andreas Dorn wrote on Fri, 25 Sep 2015: If I understand that correctly, it stores the filename in a string that has been tagged as valid UTF-16. There are no tags for valid, invalid or unchecked UTF-16. A unicodestring is basically a sequence of widechars. Some operations, such as convert

Re: [fpc-pascal] FileIO in FPC 3.0

2015-09-25 Thread Andreas Dorn
On Fri, 25 Sep 2015, Michael Van Canneyt wrote: > It uses UTF16 on windows, not a codepage aware string. > So if you use widestring for all your filename strings, there will be no > problem. No conversions will happen.   If I understand that correctly, it stores the filename in a string that has

Re: [fpc-pascal] *SPAM* Re: How to compile Lazarus program using only FPC?

2015-09-25 Thread Mark Morgan Lloyd
Mattias Gaertner wrote: On Fri, 25 Sep 2015 11:16:55 +0200 Michael Schnell wrote: On 09/25/2015 11:09 AM, Sven Barth wrote: "Lazarus" is the name for two completely different things ... please don't introduce confusion where there is none. I suppose this confusion already is ubiquitous (and

Re: [fpc-pascal] *SPAM* Re: How to compile Lazarus program using only FPC?

2015-09-25 Thread Michael Schnell
On 09/25/2015 11:32 AM, Mattias Gaertner wrote: I also ask you kindly to stop spreading FUD. Sorry for triggering this nonsense-discussion :( -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mail

Re: [fpc-pascal] How to compile Lazarus program using only FPC?

2015-09-25 Thread Dennis
If absolutely necessary I will have to set up the RPi with a monitor, keyboard and mouse and install Lazarus and compile from there. But RPi is not as powerful a computer as the PC and it will probably be very slow if at all working You can VNC to the RPi. The Pi 2 is much faster and wi

Re: [fpc-pascal] *SPAM* Re: How to compile Lazarus program using only FPC?

2015-09-25 Thread Mattias Gaertner
On Fri, 25 Sep 2015 11:16:55 +0200 Michael Schnell wrote: > On 09/25/2015 11:09 AM, Sven Barth wrote: > > > > > "Lazarus" is the name for two completely different things > > > > ... please don't introduce confusion where there is none. > > > I suppose this confusion already is ubiquitous (and min

Re: [fpc-pascal] *SPAM* Re: How to compile Lazarus program using only FPC?

2015-09-25 Thread Michael Schnell
On 09/25/2015 11:09 AM, Sven Barth wrote: > "Lazarus" is the name for two completely different things ... please don't introduce confusion where there is none. I suppose this confusion already is ubiquitous (and miner as the "_first_name_" of the LCL *is* "Lazarus (Component Library)" ). O

Re: [fpc-pascal] How to compile Lazarus program using only FPC?

2015-09-25 Thread Sven Barth
Am 25.09.2015 11:04 schrieb "Michael Schnell" : > > On 09/25/2015 03:52 AM, Bo Berglund wrote: >> >> If absolutely necessary I will have to set up the RPi with a monitor, keyboard and mouse and install Lazarus and compile from there. But RPi is not as powerful a computer as the PC and it will proba

Re: [fpc-pascal] How to compile Lazarus program using only FPC?

2015-09-25 Thread Michael Schnell
On 09/25/2015 03:52 AM, Bo Berglund wrote: If absolutely necessary I will have to set up the RPi with a monitor, keyboard and mouse and install Lazarus and compile from there. But RPi is not as powerful a computer as the PC and it will probably be very slow if at all working "Lazarus" is

Re: [fpc-pascal] detect implementation / interface sections

2015-09-25 Thread Jonas Maebe
David Emerson wrote on Thu, 24 Sep 2015: Is there a way to detect what section of a unit the compiler is in, rather than using these user-defined symbols? No. Ditto for initialization, finalization (although I use this much less frequently) No, there aren't any defines for that either.

Re: [fpc-pascal] How to compile Lazarus program using only FPC?

2015-09-25 Thread Mark Morgan Lloyd
Bo Berglund wrote: On Thu, 24 Sep 2015 09:48:32 -0400, Bo Berglund wrote: I want to check my options regarding Lazarus and FPC. If I develop a program on Windows Lazarus, move it to Debian Lazarus (x86) and then finally want to compile on ARM on for example Raspberry Pi but outside of Lazarus

Re: [fpc-pascal] detect implementation / interface sections

2015-09-25 Thread Mark Morgan Lloyd
David Emerson wrote: I tried sending this message two days ago, but it seems not to have gone through. Trying again. I like using include files, to break up big units into multiple files, and also as macro-based templates. One thing I do frequently is to put both the interface and the imple

Re: [fpc-pascal] FileIO in FPC 3.0

2015-09-25 Thread Martin Schreiber
On Friday 25 September 2015 10:26:44 Michael Van Canneyt wrote: > So if you use widestring for all your filename strings, there will be no For better performance probably UnicodeString not WideString. Martin ___ fpc-pascal maillist - fpc-pascal@lists

Re: [fpc-pascal] FileIO in FPC 3.0

2015-09-25 Thread Jonas Maebe
Andreas Dorn wrote on Fri, 25 Sep 2015: In the discussion about resourcestrings I read that the RTL now uses codepage-aware strings for FileIO. So I wonder what kind of codepages do you use for FileIO? On Windows: UTF-16. The Windows-documentation calls Filenames "opaque sequence of WCHAR

Re: [fpc-pascal] FileIO in FPC 3.0

2015-09-25 Thread Michael Van Canneyt
On Fri, 25 Sep 2015, Andreas Dorn wrote: Hi there,   In the discussion about resourcestrings I read that the RTL now uses codepage-aware strings for FileIO. So I wonder what kind of codepages do you use for FileIO? It uses UTF16 on windows, not a codepage aware string. So if you use widest

[fpc-pascal] FileIO in FPC 3.0

2015-09-25 Thread Andreas Dorn
Hi there,   In the discussion about resourcestrings I read that the RTL now uses codepage-aware strings for FileIO. So I wonder what kind of codepages do you use for FileIO? The Windows-documentation calls Filenames "opaque sequence of WCHARs". https://msdn.microsoft.com/en-us/library/windows/des

Re: [fpc-pascal] How to compile Lazarus program using only FPC?

2015-09-25 Thread Graeme Geldenhuys
On 2015-09-25 02:52, Bo Berglund wrote: > If absolutely necessary I will have to set up the RPi with a monitor, > keyboard and mouse and install Lazarus and compile from there. No need. Simply follow my instructions from my first reply in this thread. Use the "show options" on your Linux system. S