Re: [fpc-pascal] Re: SDFDataset users!?

2012-09-24 Thread LacaK
AS I understand, there are in sdfdata.pp: TFixedFormatDataSet - for SDF = "(*S*tandard *D*ata *F*ormat) A simple file format that uses fixed length fields." TSdfDataSet - for variable field length, where fields are delimited by Delimiter (and probably quoted) ... we can call it "CSV" and here

[fpc-pascal] Re: SDFDataset users!?

2012-09-24 Thread Reinier Olislagers
On 24-9-2012 21:08, Sven Barth wrote: > On 24.09.2012 21:06, Sven Barth wrote: >>> Do you think this version is good enough? Comments here or on the forum >>> would be welcome. >> >> The only problem I have with TSDFDataset is the following issue related >> to more strict CPU targets: http://bugs.f

[fpc-pascal] Re: SDFDataset users!?

2012-09-24 Thread Reinier Olislagers
On 24-9-2012 18:43, Michael Van Canneyt wrote: > > > On Mon, 24 Sep 2012, Reinier Olislagers wrote: > >> On 24-9-2012 17:22, >> michael.vancanneyt-0is9kj9sb0a-xmd5yjdbdmrexy1tmh2...@public.gmane.org >> wrote: >>> On Mon, 24 Sep 2012, Reinier Olislagers wrote: >> Finally, I'll post on the forum

Re: [fpc-pascal] libusb header translation and OOP wrapper

2012-09-24 Thread Henry Vermaak
On 24 September 2012 14:39, Christo wrote: > Unfortunately the master branch appears to be 2 months old. Any idea how > I can clone the libusb-1.0 branch? I'm new to using git so it may be > something trivial I'm missing. Try to clone git://github.com/hansiglaser/pas-libusb.git Then you can che

Re: [fpc-pascal] libusb header translation and OOP wrapper

2012-09-24 Thread Christo
On Sun, 2012-09-23 at 23:26 +0200, Johann Glaser wrote: > Hi! > > Some time ago somebody asked about USB support. I've now finished the > libusb 1.0 header translation and object-oriented wrapper. > > Please find them at > https://github.com/hansiglaser/pas-libusb/tree/libusb-1.0 > including a

Re: [fpc-pascal] crash in lazbuild only on powerpc 64bit

2012-09-24 Thread Jonas Maebe
On 24 Sep 2012, at 20:31, Florian Klämpfl wrote: > Am 24.09.2012 11:43, schrieb Jonas Maebe: >> >> Mattias Gaertner wrote on Sun, 23 Sep 2012: >> >>> writeln('This gives true=',OnGetIncludePath = >>> @CodeToolBoss.GetIncludePathForDirectory); >> >> The result of such an expression is unpredict

Re: [fpc-pascal] SDFDataset users!?

2012-09-24 Thread Sven Barth
On 24.09.2012 21:06, Sven Barth wrote: Do you think this version is good enough? Comments here or on the forum would be welcome. The only problem I have with TSDFDataset is the following issue related to more strict CPU targets: http://bugs.freepascal.org/view.php?id=22964 Sorry... wrong bug.

Re: [fpc-pascal] SDFDataset users!?

2012-09-24 Thread Sven Barth
On 24.09.2012 17:19, Reinier Olislagers wrote: Hi list, There are some bugs open for sdfdataset, e.g. 22894 Sdfdataset: empty file with FirstLineAsSchema reports Recordcount 1 instead of 0 22882 SDFDataset .AllowMultiLine does not support multiline import I've written a test suite to check sdfd

Re: [fpc-pascal] crash in lazbuild only on powerpc 64bit

2012-09-24 Thread Florian Klämpfl
Am 24.09.2012 11:43, schrieb Jonas Maebe: > > Mattias Gaertner wrote on Sun, 23 Sep 2012: > >> Calling the method directly does not crash. >> Comparing the property and the address gives true: >> >> writeln('This gives true=',OnGetIncludePath = >> @CodeToolBoss.GetIncludePathForDirectory); > > T

Re: [fpc-pascal] Re: SDFDataset users!?

2012-09-24 Thread Michael Van Canneyt
On Mon, 24 Sep 2012, Ludo Brands wrote: That is in contradiction with the existing implementation as well as the following comments following comments in SDFData.pp 14/Ago/01 Version 2.00 (Orlando Arrocha) John Dung Nguyen showed me how to make this compatible with You are erro

Re: [fpc-pascal] Re: SDFDataset users!?

2012-09-24 Thread Ludo Brands
> > That is in contradiction with the existing implementation > as well as > > the following comments following comments in SDFData.pp > > > > 14/Ago/01 Version 2.00 (Orlando Arrocha) > > John Dung Nguyen showed me how to make this > compatible with > > You are erroneously assuming I

Re: [fpc-pascal] Re: SDFDataset users!?

2012-09-24 Thread Michael Van Canneyt
On Mon, 24 Sep 2012, Ludo Brands wrote: Is there some defined on-disk format that sdfdataset should be following? As I understood it, it is either fixed length or CSV. CSV as in http://tools.ietf.org/html/rfc4180 That is in contradiction with the existing implementation as well as the

Re: [fpc-pascal] Re: SDFDataset users!?

2012-09-24 Thread Ludo Brands
> > Is there some defined on-disk format that sdfdataset should be > > following? > > As I understood it, it is either fixed length or CSV. > CSV as in http://tools.ietf.org/html/rfc4180 > > That is in contradiction with the existing implementation as well as the following comments following

Re: [fpc-pascal] Re: SDFDataset users!?

2012-09-24 Thread Michael Van Canneyt
On Mon, 24 Sep 2012, Reinier Olislagers wrote: On 24-9-2012 17:22, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On Mon, 24 Sep 2012, Reinier Olislagers wrote: 2. Presumably sdfdataset is used to exchange data with Delphi systems using tstrings.delimitedtext. Therefore I'm stressing

[fpc-pascal] Re: SDFDataset users!?

2012-09-24 Thread Reinier Olislagers
On 24-9-2012 17:22, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: > On Mon, 24 Sep 2012, Reinier Olislagers wrote: >> 2. Presumably sdfdataset is used to exchange data with Delphi systems >> using tstrings.delimitedtext. Therefore I'm stressing Delphi >> compatibility in my tests. Do you t

Re: [fpc-pascal] SDFDataset users!?

2012-09-24 Thread michael . vancanneyt
On Mon, 24 Sep 2012, Reinier Olislagers wrote: Hi list, There are some bugs open for sdfdataset, e.g. 22894 Sdfdataset: empty file with FirstLineAsSchema reports Recordcount 1 instead of 0 22882 SDFDataset .AllowMultiLine does not support multiline import I've written a test suite to check s

[fpc-pascal] SDFDataset users!?

2012-09-24 Thread Reinier Olislagers
Hi list, There are some bugs open for sdfdataset, e.g. 22894 Sdfdataset: empty file with FirstLineAsSchema reports Recordcount 1 instead of 0 22882 SDFDataset .AllowMultiLine does not support multiline import I've written a test suite to check sdfdataset behaviour. An older version of this is alr

Re: [fpc-pascal] crash in lazbuild only on powerpc 64bit

2012-09-24 Thread Jonas Maebe
Mattias Gaertner wrote on Mon, 24 Sep 2012: On Mon, 24 Sep 2012 11:43:32 +0200 Jonas Maebe wrote: > writeln('This gives true=',OnGetIncludePath = > @CodeToolBoss.GetIncludePathForDirectory); The result of such an expression is unpredictable on Linux/ppc64 and on AIX. The reason is that on t

Re: [fpc-pascal] crash in lazbuild only on powerpc 64bit

2012-09-24 Thread Mattias Gaertner
On Mon, 24 Sep 2012 11:43:32 +0200 Jonas Maebe wrote: > > Mattias Gaertner wrote on Sun, 23 Sep 2012: > > > Calling the method directly does not crash. > > Comparing the property and the address gives true: > > > > writeln('This gives true=',OnGetIncludePath = > > @CodeToolBoss.GetIncludePath

Re: [fpc-pascal] crash in lazbuild only on powerpc 64bit

2012-09-24 Thread Jonas Maebe
Mattias Gaertner wrote on Sun, 23 Sep 2012: Calling the method directly does not crash. Comparing the property and the address gives true: writeln('This gives true=',OnGetIncludePath = @CodeToolBoss.GetIncludePathForDirectory); The result of such an expression is unpredictable on Linux/ppc

Re: [fpc-pascal] crash in lazbuild only on powerpc 64bit

2012-09-24 Thread Mattias Gaertner
On Sun, 23 Sep 2012 17:29:23 +0200 Mattias Gaertner wrote: > Hi, > > I was not able to reproduce the crash in a simple program. So I'm > asking for help to create a good bug report. > > The crash happens in lazbuild only on powerpc 64bit Linux with fpc > 2.6.0 and fpc 2.7.1. It works on Linux 3