Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2005-04

DateSeparator on Unix

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marc Santhoff

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?

If not at all, how is proper localization done according to $LANG (the string constants are set by gettext)?

TIA,
Marc

Reply by email

Michael Van Canneyt
to Marc Santhoff
Marc Santhoff wrote 7 lines
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, 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.

If not at all, how is proper localization done according to $LANG (the string constants are set by gettext)?

Sorry, I don't understand this question ?

Michael.

Reply by email

Marc Santhoff
to Michael Van Canneyt
Show quoted text 22 lines
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.

Thanks again,
Marc

Reply by email

Michael Van Canneyt
to Marc Santhoff
Marc Santhoff wrote 27 lines
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?

I'll have a look.

Michael.

Reply by email