[fpc-pascal] Unicode file routines proposal

Martin Schreiber fpmse at bluewin.ch
Tue Jul 1 05:42:12 CEST 2008


On Monday 30 June 2008 22.19:49 Luca Olivetti wrote:
> En/na John Coppens ha escrit:
> > This may have been discussed before - but should the encoding not be
> > dependent on the locale? What would happen if I write a FPC program,
> > if the internal routines are, eg., UTF-16, and my locale is set to
> > en_US.UTF8?
> >
> > Anyway, I have the impression that most of Linux is utf-8 oriented by
> > now.
>
> Well, yes, but that's the external representation.
> I'd say to take a look at how python managed to integrate unicode support:
>
> http://www.google.com/search?domains=www.python.org&sitesearch=www.python.o
>rg&sourceid=google-search&q=unicode&submit=search
>
They have a UTF-16/UCS-2 internal representation, same as MSEgui which works 
very well and is fast and handy BTW.
What is missing is a reference counted widestring type on Windows. ;-)

Martin



More information about the fpc-pascal mailing list