[fpc-pascal] FPC 3: disabling automatic AnsiString codepage conversionx

tobiasgiesen at gmail.com tobiasgiesen at gmail.com
Mon Apr 4 12:23:51 CEST 2016

> OK, I just confirmed. Adding clocale to my 5-line test program doesn't
> affect the DefaultSystemCodePage result, but as soon as I add cwstring
> to the uses clause, then DefaultSystemCodePage returns 65001.

On Mac, not even cwstring does that. It sets the DefaultSystemCodePage
to 20127.

So, on Mac, the DefaultSystemCodePage is not "typically" set to UTF_8.
It is never set to UTF_8 unless you do it yourself.


More information about the fpc-pascal mailing list