[fpc-devel] TRegistry and Unicode

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Feb 26 19:27:40 CET 2019

On Tue, 26 Feb 2019 19:14:41 +0100
Bart <bartjunk64 at gmail.com> wrote:

> On Tue, Feb 26, 2019 at 2:12 PM Michael Van Canneyt
> <michael at freepascal.org> wrote:
> > But inner workings can be made to use Unicode, because the
> > underlying APIs are using unicode: The *W registry calls on
> > windows, XML DOM on other systems.  
> Well, my argument is that since we interface explicitely with a
> UnicodeString API, then why not expose that to the programmer?

Note: TRegistry uses only on Windows a UTF-16 API.
On non Windows systems it uses TXmlRegistry, which uses AnsiString and
internally uses TXMLDocument, which uses UnicodeString.

Perhaps it would be better to change TXmlRegistry to Unicodetring?


More information about the fpc-devel mailing list