Variant to RawByteString assignment missing.
Original Reporter info from Mantis: ludob
-
Reporter name: Ludo Brands
Original Reporter info from Mantis: ludob
- Reporter name: Ludo Brands
Description:
Several functions have changed from using utf8string to RawByteString but while operator :=(const source : variant) dest : UTF8String; existed, the corresponding variant to RawByteString is missing.
Example:
program test;
var v:variant;
s:string;
begin
s:=UTF8Encode(v);
end.
Results now in 'Error: Incompatible types: got "Variant" expected "RawByteString"'
As a side comment for UTF8Encode: the overloaded function UTF8Encode(const s : UnicodeString) : RawByteString; exists and variant to UnicodeString exists also. A pity the compiler doesn't consider that option, especially since the variant probably contains a widestring (why else call the function).
Mantis conversion info:
- Mantis ID: 21710
- Build: 20780
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 20907 (#b80e7c8f)