[fpc-devel] Trying to understand the wiki-Page "FPC Unicode support"

Michael Schnell mschnell at lumino.de
Wed Nov 26 13:11:52 CET 2014

After re-reading yet another question:

In section "String concatenations" there is no mentioning about 
auto-conversion. For statically typed Strings it's rather obvious that 
they will be auto-converted if appropriate. Technically - if differently 
encode - they seem to be converted to Unicode and the result is 
converted to match the target.

Regarding RawByteStrings there has been the definition "a RawByteString 
has exactly the same behavior as assigning that AnsiString(X) to another 
AnsiString(X) variable with the same value of X: no code page conversion 
or copying occurs". Seemingly this is not true for the intermediate 
results of concatenations. Here the dynamical encoding information seems 
to define the fact and type of conversion. If this is the fact it should 
be mentioned. (Whether or not this makes sense is another question: is 
the code information of "RawByteString" meant to be "NONE" (i.e. "RAW") 
or "dynamic" (i.e. "complex") ).


More information about the fpc-devel mailing list