[Lazarus] Unicode branch
Michael Schnell
mschnell at lumino.de
Wed Jun 12 14:09:10 CEST 2013
On 06/12/2013 01:35 PM, Michael Van Canneyt wrote:
>
>
>
> Add
>
> {$IFDEF FPC}
> {$DEFINE UNICODE}
> {$ENDIF}
>
> to your source, or, alternatively, fpc -dUNICODE
>
> Both do the trick.
>
I'm not sure if this is the trick requested, as the target is to
automatically modify their source code in a way that it works on the
compiler used.
Of course there are many workarounds, but the porting of course should
be as straight forward as possible.
They can compile their source files both on pre-Unicode Delphi (UNICODE
not defined) and on Unicode aware Delphi (UNICODE is defined).
In fact they use 8 Bit characters when UNICODE is not defined and 16 Bit
characters when it is.
Thus with the currently released fpc they would need UNICODE undefined.
With the upcoming fpc they supposedly would need UNICODE defined (in
case that "String" now is 16 Bit coded on default.
-Michael
More information about the Lazarus
mailing list