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 indicated).


Jonas
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to