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

Marcos Douglas md at delfire.net
Fri Dec 27 21:28:51 CET 2013


On Fri, Dec 27, 2013 at 11:42 AM, Marco van de Voort <marcov at stack.nl> wrote:
> On Fri, Dec 27, 2013 at 12:15:00PM +0000, Graeme Geldenhuys wrote:
>> Personally I think FPC and Lazarus should get rid of "string"
>> altogether! It should be a user definable type that can be defined per
>> project.
>>
>> eg:
>> Projects could do the following
>>
>>   type
>>     {$IFDEF WINDOWS}
>>     UnicodeString = UTF16String
>>     {$ENDIF}
>>     {$IFDEF UNIX}
>>     UnicodeString = UTF8String
>>     {$ENDIF}
>
>>    String = UnicodeString
>>    // or for backwards compatibility with old projects:
>>    //   String = AnsiString
>
> Please read 4 years of discussion backlog. It is not all language, there is something called
> "libraries", and they are generally installed precompiled.

Ok, you're right... so compile these libraries again! This would not
be the simplest way?

Marcos Douglas




More information about the Lazarus mailing list