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

Paul Ishenin ip at kmiac.ru
Thu Oct 13 10:26:25 CEST 2011


13.10.2011 16:14, Felipe Monteiro de Carvalho wrote:
> On Thu, Oct 13, 2011 at 9:44 AM, Paul Ishenin<ip at kmiac.ru>  wrote:
>> The later can be made by call SetMultiByteConversionCodePage(CP_UTF8) at the
>> program start.
>
>> From my comment on the bug report:
>
> Won't SetMultyByteConversionCodePage inadvertedly affect 3rd party
> libraries used by the program which, for example, execute something
> like:
>
> myansistring := mywidestring;
>
> And then expect myansistring to be in the system encoding?

It will affect as well as compiler directive you suggested to add.

Best regards,
Paul Ishenin.




More information about the fpc-devel mailing list