On Sun, 15 Apr 2012 11:44:15 +0200
Martin Schreiber <mse00...@gmail.com> wrote:

> On Sunday 15 April 2012 11:32:21 Mattias Gaertner wrote:
> >
> > cpstrnew is part of fpc 2.7.1 and Lazarus runs fine with it since two
> > months.
> >
> > The -Fcutf8 and {$codepage utf8} exists since ages.
> >
> I meant the combination of -Fcutf8, cpstrnew, and the Lazarus UTF8String 
> which 
> should be possible in FPC trunk but is not fully tested up to now maybe.

I'm not sure what you mean with "the Lazarus UTF8String". 

There is UTF8String = type AnsiString(CP_UTF8) defined in system.pp.

Under Linux and OS X any LCL application gets
DefaultSystemCodePage:=CP_UTF8, so all strings without an encoding are
treated as CP_UTF8, which means encoded as UTF8String.

Maybe Paul can explain the details for MS Windows.

This does not change the fact that the -Fcutf8 and {$codepage utf8}
have some drawbacks.


Mattias

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to