[fpc-devel] bug report 20473: Please add a directive to define string=utf8string

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Thu Oct 13 13:35:42 CEST 2011



On Thu, 13 Oct 2011, Marco van de Voort wrote:

> In our previous episode, michael.vancanneyt at wisa.be said:
>>> 2. Try a blanket {$H} to make the default stringtype what you want, and fix
>>>   problems (e.g. overrides of methods, passing to var params).
>>
>> The blanket {$H} seems like the way to go for most packages.
>> If we insert {$H ANSISTRING}, then most packages should remain functional,
>> allowing us to tackle the packages one by one.
>
> The more procedural packages yes. The OOP ones not, since their stringtype
> must match classes for overrides.

Yes, but 
1. this is the smallest group, so I don't consider that a problem.
2. I doubt there is a lot of code in these classes that relies on sizeof(char)=1.

It's time to cut the gordian knot and take a decision. 
All pros and contras have been discussed at great length meanwhile.

Michael.



More information about the fpc-devel mailing list