On Tue, 26 Jul 2016 12:03:21 +0200
Jonas Maebe <jonas.ma...@elis.ugent.be> wrote:

> Mattias Gaertner wrote on Tue, 26 Jul 2016:
> 
> > It seems the Delphi rules for non rawbytestrings are:
> > - Concatenate two same declared strings: append bytes, copy dyn. cp
> >   from left operand. Declared cp of result is left operand.  
> 
> Are you sure it's "append bytes" here and not "append bytes if same  
> dyn cp, otherwise convert to unicodestring, concatenate, and convert  
> back to dyn cp of left operand"?

Now I'm sure. See attachments.


Mattias

Attachment: cp_test2.dpr
Description: Binary data

a1 = "aä" cp = 1252
a2 = "oö" cp = 65001
a3:=a1+a2 = "aäoA" cp = 1252
a3:=a2+a1 = "oöa?" cp = 65001
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to