[fpc-devel] UTF8 RTL

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Nov 18 18:17:25 CET 2014


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.

> 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).

> 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.

> Has someone already started it?

Not that I know.


Jonas



More information about the fpc-devel mailing list