[fpc-pascal] Re: SDFDataset users!?

Reinier Olislagers reinierolislagers at gmail.com
Tue Sep 25 07:26:08 CEST 2012


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-XMD5yJDbdMReXY1tMh2IBg at public.gmane.org
>> wrote:
>>> On Mon, 24 Sep 2012, Reinier Olislagers wrote:

>> Finally, I'll post on the forum that sdf compatibility is not one of the
>> goals of sdfdataset.
>>
>> 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


People can only go by what they see (they can't read your mind when you
committed sdfdataset).
There is:
- the unit name ("sdfdataset")
- the comments
- the code
- the output
All of this makes it in my opinion more likely to be SDF than CSV.

CSV is not SDF.
See the test results from the Delphi test I posted to the list earlier.
For a description of what SDF is (based on Delphi help as well as the
tests), see
http://wiki.lazarus.freepascal.org/SDF

If you understand it is CSV, why not document it, even if only in a readme:

In contradiction to what its name may apply, Sdfdataset reads and writes
CSV data according to RFC4180, not the Delphi SDF format.

PS: I'll leave writing a test set to test against RFC4180 for people who
care.



More information about the fpc-pascal mailing list