[fpc-devel] Save the current FPC UnicodeString!
florian at freepascal.org
Thu Nov 12 22:55:57 CET 2009
dmitry boyarintsev schrieb:
> On Fri, Nov 13, 2009 at 12:44 AM, Florian Klaempfl
> <florian at freepascal.org> wrote:
>> Well, an ansistring has an implicit encoding: system. This won't change
>> and if one uses only unicodestrings and ansistrings, no change will be
> Thanks. It's always nice to hear "No changes required" :)
Well, I guess you're talking about lazarus ;) I don't see yet however,
if and how the ansistring abuse in the lcl will bite one ...
>> No, because it would avoid auto-conversion from/to unicodestring as well.
> does your answer means, that:
> r : RawByteString;
> w : WideString;
> r:=w; // is impossible because of unknown encoding of RawByteString?
No, it is possible becuase the encoding is known because it is stored in
RawByteString, but the appropriate conversion will be selected at runtime.
More information about the fpc-devel