[Lazarus] Making sources compatible with Delphi (but Lazarus is priority)
Sven Barth
pascaldragon at googlemail.com
Fri May 5 14:56:19 CEST 2017
Am 05.05.2017 13:50 schrieb "Juha Manninen via Lazarus" <
lazarus at lists.lazarus-ide.org>:
>
> On Fri, May 5, 2017 at 2:29 PM, Michael Van Canneyt via Lazarus
> <lazarus at lists.lazarus-ide.org> wrote:
> > Then what is still the problem ?
>
> With BOM you get:
> Error: UTF-8 code greater than 65535 found
> which is counter-intuitive when the file and the string literal are both
UTF-8.
That is mainly due to the compiler not supporting surrogate pairs for the
UTF-8 -> UTF-16 conversion. If it would support them, then there wouldn't
be a problem anymore... (though of course it would need to be ensured that
other parts of the RTL support surrogate pairs as well)
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170505/6da03152/attachment.html>
More information about the Lazarus
mailing list