[fpc-devel] Unicode RTL

Michael Van Canneyt michael at freepascal.org
Mon Jul 24 23:20:35 CEST 2023



On Mon, 24 Jul 2023, Kirinn via fpc-devel wrote:

> Hi,
>
> A "unicode" RTL is of course great for targeting legacy Windows platforms,
> but for those of us on Linux, UTF-8 is the way.

It is not only for legacy windows platforms.
The target platform is secondary.

What to use depends more on your codebase than on your target platform.
There is a lot of Delphi code out there that assumes that string=unicodestring.

If, like my current company, you have a large Delphi application that you wish
to run on linux, then you may be better off with a unicode RTL.

> To this end, it would be
> helpful to add a paragraph on the wiki page underlining how to retain the
> single-byte RTL; or, if no user action is necessary, mention that, to set
> minds at ease. Thank you for this hard work!

No user action is necessary.

But your advice is good: I have added this to the page, and made clear
that the RTL as it currently exists, is still the default RTL.

Michael.


More information about the fpc-devel mailing list