[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 12:08:53 CEST 2011



On Thu, 13 Oct 2011, Sven Barth wrote:

> Am 13.10.2011 11:57, schrieb Marco van de Voort:
>> In our previous episode, Sven Barth said:
>>> I think he ment that if such a feature is introduced it would be a
>>> natural conclusion to define "string = unicodestring" on Windows and
>>> "string = utf8string" for Unix in the RTL and the FCL (and maybe "string
>>> = ansistring" for DOS and OS/2). Thus those two libraries need to be
>>> tested intensively that they can cope with that.
>> 
>> No, worse even, both on both platforms. So win32-utf8 and win32-utf16, 
>> where
>> the utf* designates the type of the default string type. And the same for
>> unix.  Maybe win32-ansi too.
>
> Ok... that you want multiple distributions per platform is clear now. But you 
> would not oppose (in the case of having multiple distributions) a feature 
> like Felipe suggested, do I understand that correctl?
>
>> The default stringtype is set on compiler startup, but can be modified
>> inside procedures with $H like behaviour.
>
> You would go as far as allowing a change of "string" on a per-procedure base?

I think such a modifier should be global.

Michael.



More information about the fpc-devel mailing list