[Lazarus] Lazarus (UTF8) and Windows: SysToUTF8, UTF8ToSys... Is there a better solution?

Sven Barth pascaldragon at googlemail.com
Wed Dec 25 22:41:32 CET 2013


Am 25.12.2013 19:19 schrieb "Marcos Douglas" <md at delfire.net>:
> > Since that means typically two per target, it was suggested to combine
this
> > using dotted unit functionality.
>
> I did not understand this... dotted unit functionality?

Delphi XE 2 with the introduction of FireMonkey switched from normal unit
names for the RTL to dotted ones (aka unit namespaces). E.g. SysUtils and
Classes became System.SysUtils and System.Classes respectively, the Windows
units moved into a Windows "namespace" (AFAIK) and Forms became VCL.Forms.
Now the XE2 IDE and command line compiler also provide the possibility to
specify multiple default namespaces (e.g. a VCL application would have
System and VCL) to ensure backwards compatibility.

Now the idea is to have dotted units in FPC where String=UnicodeString and
the legacy non-dotted ones where String=AnsiString. That only leaves out
Delphi 2009 and XE compatibility (which uses non-dotted UnicodeString
units), but that's a small price IMHO. Also there are a few further
problems that need to be tackled with that approach.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20131225/bce103f7/attachment-0003.html>


More information about the Lazarus mailing list