[Lazarus] UTF8 RTL for Windows

Hans-Peter Diettrich DrDiettrich1 at aol.com
Tue Nov 25 20:55:52 CET 2014



Mattias Gaertner schrieb:
> On Tue, 25 Nov 2014 14:49:52 +0100
> Felipe Monteiro de Carvalho <felipemonteiro.carvalho at gmail.com> wrote:
> 
>> On Tue, Nov 25, 2014 at 2:45 PM, Mattias Gaertner
>> <nc-gaertnma at netcologne.de> wrote:
>>> Retype "Char" to "String" and the compiler will bark. For example in
>>> Graphics.
>> What about changing to WideChar then?
> 
> If you mean unit Graphics: It checks for ASCII characters. So a change
> to WideChar would add implicit conversions without any gain.

You see that Unicode handling requires more than only changing declarations?
[Where changing Char to Byte in Graphics might be sufficient, as long as 
such bytes are not kept in Strings]

> In case of ThousandSeparator:
> That would probably be sufficient. Although some code needs to
> be adapted.

Then you should also see that certain means should at least *allow* to 
*identify* code that is not sufficiently Unicode-aware. This would not 
only allow the FPC/Lazarus developers to identify flaws in the standard 
libraries, but also users will appreciate spotted flaws in their legacy 
code :-)

DoDi





More information about the Lazarus mailing list