On 04/04/2016 06:23 AM, tobiasgie...@gmail.com wrote:
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.
FWIW: i keep seeing the argument "on Mac" but never has the OS on that Mac been
mentioned... AFAIK there is more than one OS for Mac or at least more than one
version of the OS... it is possible that the default has been changed plus
there's whatever was selected for the language during the installation... this
really should be clarified for your Mac and its OS...
--
NOTE: No off-list assistance is given without prior approval.
*Please keep mailing list traffic on the list* unless
private contact is specifically requested and granted.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal