[fpc-devel] Unix internationalization patch

Michael Van Canneyt michael at freepascal.org
Tue Apr 8 19:51:42 CEST 2008



On Tue, 8 Apr 2008, petr.kristan at epos.cz wrote:

> On Tue, Apr 08, 2008 at 05:19:34PM +0200, Jonas Maebe wrote:
> > 
> > On 08 Apr 2008, at 17:03, petr.kristan at epos.cz wrote:
> > >On Tue, Apr 08, 2008 at 04:29:51PM +0200, Michael Van Canneyt wrote:
> > >>
> > >
> > >>This is not correct, it makes sysutils dependent on (g)libc and  
> > >>that is not
> > >>allowed. The correct way of doing this is to make it a separate unit
> > >>that links to libc, and fills all variables in it's initialization  
> > >>section.
> > >Ok. But where in rtl place this unit in the uses clause?
> > 
> > Nowhere. You'll have to manually add it to the uses-clause of your  
> > programs, like the cwstring (widestring support for unix) and cthreads  
> > (threading support for unix) units.
> Here is attached separated clocale.pp. I think that it should be placed into rtl/unix directory.
> Unit is tested only in Linux environment, but I assume that on other unices
> will be necessary to add some $IFDEFs.

I'll first ask in the core team, where to put it.

Michael.



More information about the fpc-devel mailing list