On 29 Dec 2013, at 16:25, Hans-Peter Diettrich wrote:

> I've heard that a mix of encodings converts the (concatenated) output 
> (RawByteString?) to CP_ACP, with possible losses. Is this correct?

The code page of ansistrings concatenations is the code page of the result to 
which this concatenation is assigned/converted. For rawbytestring, this code 
page is CP_ACP per Delphi compatibility.

I'm inclined to add a global boolean variable to the system unit that allows 
changing this behaviour so that it uses CP_UTF8 instead in such cases 
(defaulting to false, for Delphi compatibility). In practice, setting it to 
true shouldn't cause problems even with virtually all Delphi, as routines that 
work with rawbytestring should be able to handle any code page anyway.


Jonas_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to