[Lazarus] Again an UTF8 mess!
Juha Manninen
juha.manninen62 at gmail.com
Sun Jul 17 15:55:26 CEST 2016
On Sun, Jul 17, 2016 at 4:27 PM, Kostas Michalopoulos
<badsectoracula at gmail.com> wrote:
> Why not make the old functions simply call the new ones?
The "old functions" were wrappers and indeed called the actual
functions in proper units.
> Why break user code?
Sometimes code must be cleaned.
The breakage was not bad, it only required to change or add units in
uses section.
This was a proper time for a cleanup because the whole UTF-8 support
was revamped which also broke some code.
The wrapper functions were mostly UTF-8 helper functions, many of
which are not needed any more.
Removing the wrappers can be seen as a hint to clean up your code even
more. In practice you can replace most UTF8...() and ...UTF8()
functions with their Delphi compatible versions without the "UTF8"
part.
See:
http://wiki.freepascal.org/Better_Unicode_Support_in_Lazarus
Juha
More information about the Lazarus
mailing list