On Mon, 4 Apr 2016, Graeme Geldenhuys wrote:

On 2016-04-04 10:39, tobiasgie...@gmail.com wrote:
It says "On Linux and Mac OS X UTF-8 is typically the system codepage, so the 
RTL uses
here by default CP_UTF8."

Not on my Mac. DefaultSystemCodePage is 20127 before I set it to 65001.

Indeed, and on my FreeBSD system DefaultSystemCodePage returns 0.

So the "typically" seems more like "unlikely in most cases".

Not necessarily: if you are dealing with UTF8/UnicodeString and other codepages, it is
quite likely, and preferred, that you have unit cwstring included.

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to