[fpc-pascal] DateSeparator on Unix
Michael Van Canneyt
michael.vancanneyt at wisa.be
Wed Apr 6 17:49:19 CEST 2005
On Wed, 6 Apr 2005, Marc Santhoff wrote:
> 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.
More information about the fpc-pascal
mailing list