[fpc-pascal] String literals and code page of .pas source file
Sven Barth
pascaldragon at googlemail.com
Sat Sep 12 18:44:27 CEST 2020
Jonas Maebe via fpc-pascal <fpc-pascal at lists.freepascal.org> schrieb am
Sa., 12. Sep. 2020, 17:47:
> > All the doubts, questions, and discussions prove that current system is
> > counter-intuitive and confusing.
>
> The issue in this thread is caused by a bug in the LCL: it blindly
> assumes that the dynamic code page of the caption string is always
> utf-8. That is simply wrong (unless you put the burden on the user to
> always assign an utf-8-encoded string to it, but _that_ is
> counter-intuitive and confusing).
>
But shouldn't the compiler insert a conversion if the string is declared as
CP_1250 and the destination is CP_ACP?
Regards,
Sven
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20200912/9c74d395/attachment.htm>
More information about the fpc-pascal
mailing list