[fpc-devel] TRegistry and Unicode

Bart bartjunk64 at gmail.com
Fri Mar 15 00:04:37 CET 2019


On Wed, Mar 13, 2019 at 6:43 PM Bart <bartjunk64 at gmail.com> wrote:

> That was the easy part.

Since all values written are now UnicodeString, WriteStringList in
XMLREG implementation now writes a sequence of UnicodeChar
representations to the registry. Previously it wrote AnsiChar's.
Give a stringlist with values '1','2','3''  it now writes:
<Value Name="StringList" Type="4">31000000320000003300</Value>
Before it did
<Value Name="StringList" Type="4">3100320033000000</Value>

Getting it to write AnsiChars is a little bit tricky as fas as I can
see right now.

Since this function did not exist in 3.0.4 I think this is acceptable?
Especially since the previous implementation was bugged as well.
(Released software should not be made with fpc trunk anyway IMO)


-- 
Bart



More information about the fpc-devel mailing list