[fpc-pascal] Unicode chars losing information

Michael Van Canneyt michael at freepascal.org
Tue Mar 9 10:10:41 CET 2021

On Tue, 9 Mar 2021, Mattias Gaertner via fpc-pascal wrote:

> On Tue, 9 Mar 2021 08:04:54 +0100
> Sven Barth via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
>> [...]
>> FPC is not Java. In FPC you have more fine-grained control over the
>> resulting binary than "install big, fat runtime". Not to mention that
>> FPC can target resource constrained systems as well.
> Optional is good.
> Maybe the defaults can be changed. For example the macOS dmg and
> Linux-x86-64 debs/rpms could install an fpc.cfg containing
> #ifndef FPNonUnicode
> -Facwstring
> -Fcutf-8
> #endif
> For minimal programs pass -dFPNonUnicode

Our mails crossed.

That corresponds to what I proposed, with minor differences. 
The additional #ifndef FPNonUnicode is also a good idea.


More information about the fpc-pascal mailing list