[fpc-pascal] locale solution for unix systems
graemeg.lists at gmail.com
Thu Mar 19 09:44:36 CET 2009
On Thu, Mar 19, 2009 at 10:17 AM, ik <idokan at gmail.com> wrote:
> In order to know what is the active local in Unix/Linux you should
> check the environment variables.
> If it was not defined or it stand on "C", then en_US is inplace.
Currently FPC doesn't populate the locale variable on unix systems (if
you don't compile your application with the libc related units).
Yet if I create a simple console application the date formats etc are
all en_US. I want to write a new unit that doesn't rely on libc
(seeing that it isn't available on all UNIX-style platforms) that will
parse the correct locale text files (base on LC_xxx environment
variables) and populate the locale variables in the RTL.
It's on my todo list, but I have a few more things to finish before I
can start this project.
- Graeme -
fpGUI - a cross-platform Free Pascal GUI toolkit
More information about the fpc-pascal