[fpc-pascal] DateSeparator on Unix
M.Santhoff at t-online.de
Wed Apr 6 17:25:58 CEST 2005
Am Mi, den 06.04.2005 schrieb Michael Van Canneyt um 17:03:
> On Wed, 6 Apr 2005, Marc Santhoff wrote:
> > Hi,
> > on win32 the date separator constant is set according to the system
> > settings. For unix/linux there is no information contained in the docs
> > (units.pdf, ch.22 'sysutils').
> > How is this done on unix-like systems?
> Currently, not at all.
> Problem is that the needed functionality for this is in the C library.
> Automatically setting the info in the SysUtils unit would introduce
> a dependency on the C library, which we want to avoid.
> There is a unit floating around which can be linked in separately, and
> which will set the constants to their appropriate values, based on
> either the LANG variable values or the KDE settings. But it does link
> your application to the C library.
> I have it at home somewhere, I think.
This sonds very interesting to me, because linking to the c lib is no
problem at all (one platform only). Do you have a name to google after
or maybe you can find the unit and mail to me or post it here?
> > If not at all, how is proper localization done according to $LANG (the
> > string constants are set by gettext)?
I'm not very used to localization (it's all greek to me ;) and I thought
this would be part of the gettext unit not working. But it apparently is
not, as I know now. So this question is obsolete.
More information about the fpc-pascal