[fpc-devel] Locale solution for Linux (and maybe *nix)

Michael Van Canneyt michael at freepascal.org
Mon Aug 4 10:06:12 CEST 2008

On Mon, 4 Aug 2008, Graeme Geldenhuys wrote:

> On Mon, Aug 4, 2008 at 9:38 AM,  <petr.kristan at epos.cz> wrote:
> >>
> > Include rtl/unix/clocale.pp into your project.
> Thanks Petr, but that requires libc, hence the reason it can't be
> added to the sysutils unit. That was my understanding of the locale
> issue, based an a message I posted some months ago. Also, those libc
> API calls read the binary form of the locale files if I remember
> correctly.
> What I am suggesting, is reading the plain text locale files and parse
> them ourselves without the need for Libc dependency.
> I just need to confirm what other Linux and Unix OS's have those files
> available?  My suggestion would be no good if only Ubuntu includes
> those files, but not other Linux distros or *BSD etc...

All Linuxes have these files, they are required by Libc.
I suppose that BSD has a similar mechanism as I think it is a POSIX spec.


More information about the fpc-devel mailing list