[fpc-devel] Unicode support (yet again)
Felipe Monteiro de Carvalho
felipemonteiro.carvalho at gmail.com
Wed Sep 14 09:39:41 CEST 2011
On Wed, Sep 14, 2011 at 8:59 AM, <michael.vancanneyt at wisa.be> wrote:
> No, why do you think so ?
Well, at the very least:
1> All var parameters from the RTL will no longer be directly usable
with UTF-8 strings
http://www.freepascal.org/docs-html/rtl/sysutils/appendstr.html
How can I pass a UTF-8 string to AppendStr in the Unicode RTL?
The Example62 from the docs will no longer compile =D
2> TStrings will be in a different encoding from the rest of the LCL,
this will surely be very nasty.
MyForm.Caption := MyStrings.Strings[9]; and you get an encoding conversion...
Basically it will be a salad of automatic conversions done by the compiler...
3> FileOpen(MyForm.Caption, whatever_mode);
You get first utf-8 -> utf-16 to call FileOpen and then FileOpen does
utf-16->utf-8 on UNIXes
--
Felipe Monteiro de Carvalho
More information about the fpc-devel
mailing list