[Lazarus] Debugging the rtl/fcl - segfault in sdfdataset

Michael Van Canneyt michael at freepascal.org
Fri Jul 17 12:12:27 CEST 2020



On Fri, 17 Jul 2020, Luca Olivetti via lazarus wrote:

> El 17/7/20 a les 11:46, Luca Olivetti via lazarus ha escrit:
>
>> 
>> In fact, if you look at the bug report, it's enough to use the old 
>> version of Fielddefs.Add (i.e. the one without the encoding) to "fix" 
>> the problem, but it's not because of the default (I changed it to 
>> 'utf-8', or maybe it's actually 'utf-8' that causes the problem).
>
> Yes, setting it to '437' or 'iso8859-1' avoids the segfault.

Haha... The mystery is unraveling :-)

Note that these are single-byte codepages.
Are you using fixed-length of CSV ? Because in the case of fixed-length,
UTF8 makes no sense...

Michael.


More information about the lazarus mailing list