[fpc-devel] Use widesting as default?

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Nov 18 15:22:10 CET 2010

On 18 Nov 2010, at 15:12, Birger Jansen wrote:

> I'm converting a Delphi 2009 project to FPC. In this project all  
> strings are widestrings, which is default for Delphi 2009. However,  
> in FPC all strings are still 'normal' strings. Is there a way  
> (compiler switch?) to use widestring as default for all strings in  
> FPC?

Strings belong to FPC, so this is the right list (fpc-pascal would be  
slightly more appropriate, but that doesn't matter). That said, FPC  
does not have such an option at this time.

Keep in mind that Delphi 2009's default string type is much more than  
a regular widestring. Using "unicodestring" instead in FPC would be  
more correct, but even then you won't have the same support yet (that  
first requires the completion of the cpstrnew branch, as Paul  


More information about the fpc-devel mailing list