Michael Schnell schrieb:
On 06/26/2013 03:44 PM, Marco van de Voort wrote:
There never is a conversion when assigning to/from rawbytestring,

So what do you suggest should happen when assigning a RawByteString to a normal String ? The result could be a strange thing that is encoded other than the type requires. To me this behavior is a quirk go and should not be capt just for compatibility. .

Then you have two choices:
1) convert the string as required
2) copy the content unconverted, but update the encoding

IMO a reasonable decision should take into account the use of the RawByteString type in RTL code, e.g. for concatenation.

Can you show us your intended code for these functions?

DoDi

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to