[fpc-devel] UTF8 RTL

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Nov 18 19:51:43 CET 2014

On Tue, 18 Nov 2014 18:17:25 +0100
Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:

> On 18/11/14 16:59, Mattias Gaertner wrote:
> > Hi and much kudos for those who made the UTF8 RTL.
> Thanks, but there is no UTF-8 RTL.

That's what I thought too a week ago.
FPC 2.7 made an old dream come true. :)

> > GetCurrentDir, FindFirst, FileExist, TStringList, etc. all work well. :)
> They are not guaranteed to use UTF-8, and you must not assume that they
> do (and TStringList in particular has not been changed in any way).
> See http://wiki.freepascal.org/FPC_Unicode_support for the details, and
> http://wiki.freepascal.org/FPC_Unicode_support#RTL_changes for the list
> of RTL routines that currently work correctly with arbitrary code pages
> (or that at least should do so).

Yes, this page is great. I had to read it twice to understand the
flexibility of the new RTL.

> > ParamStr is not yet converted and only supports system codepage. I
> > would like to help improving it.
> It will always only support system code page on Unix platforms, because
> everything that comes from the shell must be assumed to be in that code
> page. On Windows, it can be changed though.

From Lazarus point of view most Unicode problems are on Windows.
And now most of them are solved. FPC 2.7 will be a big improvement for
Lazarus users.


More information about the fpc-devel mailing list