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

Marco van de Voort marcov at stack.nl
Mon Dec 23 11:38:09 CET 2013


On Sun, Dec 22, 2013 at 05:06:27PM -0200, Marcos Douglas wrote:
> > FPC 2.7.x can compile the windows unit in unicode (UTF16) mode. Most system and
> > sysutils file related routines are already unicode (UTF16 with Rawbytestring
> > overload).
> 
> So FPC 2.7.x can compile the windows unit in unicode (UTF16) mode. But
> how it will work with Lazarus that uses UTF-8?

Not without conversions. UTF8 on Windows IMHO _NEVER_ was a good idea.

> Lazarus will not to
> change to UTF-16 -- only for Windows -- then everything will stay the
> same to Windows programmers?

I think it is too early to say what will happen. One way or the other.
Everybody is still searching, and the current 2.6.x based UTF8 support will
need an overhaul anyway for 2.8.x.

I think 2.8.x will be a transition version anyway, and a definitive unicode
solution will only in the major release after that.




More information about the Lazarus mailing list