[fpc-devel] Delphi incompatible encoding
Mattias Gaertner
nc-gaertnma at netcologne.de
Tue Dec 2 09:51:05 CET 2014
On Tue, 02 Dec 2014 04:05:59 +0100
Hans-Peter Diettrich <DrDiettrich1 at aol.com> wrote:
> Jonas Maebe schrieb:
> >
> > Hans-Peter Diettrich wrote on ma, 01 dec 2014:
>
> > To get behaviour that is compatible with Delphi2009+, compile with
> > -Mdelphiunicode or {$modeswitch delphiunicode}.
>
> The compiler option (-M) works, but the $modeswitch is not accepted by
> the compiler (2.7.1): Illegal compiler switch "DELPHIUNICODE". The same
> for {$mode ObjPas} - what else did I miss?
>
> When I use Lazarus and set the compiler to the new 2.7.1, the modeswitch
> does not cause an error.
You can set String=UnicodeString with
-Mdelphiunicode
or {$Mode delphiunicode}
or {$ModeSwitch unicodestrings}
All require 2.7.1.
Mattias
More information about the fpc-devel
mailing list