[Lazarus] Unicode branch

Michael Van Canneyt michael at freepascal.org
Wed Jun 12 13:35:21 CEST 2013



On Wed, 12 Jun 2013, Michael Schnell wrote:

> On 06/12/2013 11:10 AM, Michael Van Canneyt wrote:
>> 
>> Not necessarily. Compatible concerning Language/rtl functions, yes. 
>> Defines, this is debatable.
> I do know that my colleagues use "UNICODE" a lot when porting their (huge) 
> code-base from pre-Unicode Delphi to Unicode aware Delphi versions.
>
> So yes it is absolutely essential to them that this define stays in it's 
> inherited meaning when they one port their code to Lazarus / FPC to make it 
> run on Linux.

Simple:

Add

{$IFDEF FPC}
{$DEFINE UNICODE}
{$ENDIF}

to your source, or, alternatively, fpc -dUNICODE

Both do the trick.

Michael.




More information about the Lazarus mailing list