Re: [fpc-pascal] DateToStr locale

2006-11-02 Thread Henry Vermaak
marco said: Not portable. E.g. on BSD it is /usr/share/locale So between 1 and 2 there should be a step "find locale dir". This because a solution is required to be Solaris, BSD and Mac OS X compatible. true, there is a findlocale.c file under libc that deals with this. this is a necessary s

Re: [fpc-pascal] DateToStr locale

2006-11-02 Thread Marco van de Voort
> o.k. i've had a look at the libc source (locale dir). i understand > the general gist of things, but it'd take ages to implement in pascal > if i try and transliterate that. it's also not very easy to read (due > to a generous use of defines). what work has been done on this for > fpc? is the

Re: [fpc-pascal] DateToStr locale

2006-11-02 Thread Michael Van Canneyt
On Thu, 2 Nov 2006, Henry Vermaak wrote: > o.k. i've had a look at the libc source (locale dir). i understand > the general gist of things, but it'd take ages to implement in pascal > if i try and transliterate that. it's also not very easy to read (due > to a generous use of defines). what w

Re: [fpc-pascal] DateToStr locale

2006-11-02 Thread Henry Vermaak
o.k. i've had a look at the libc source (locale dir). i understand the general gist of things, but it'd take ages to implement in pascal if i try and transliterate that. it's also not very easy to read (due to a generous use of defines). what work has been done on this for fpc? is there any (m

Re: [fpc-pascal] DateToStr locale

2006-11-01 Thread Michael Van Canneyt
On Wed, 1 Nov 2006, Henry Vermaak wrote: > hello all > > i've noticed that DateToStr gives correct results on win32 (regarding > locale), but on linux and osx it always gives the date as dd-mm-. > i read somewhere in the archives that there's a problem implementing > this due to the need to

[fpc-pascal] DateToStr locale

2006-11-01 Thread Henry Vermaak
hello all i've noticed that DateToStr gives correct results on win32 (regarding locale), but on linux and osx it always gives the date as dd-mm-. i read somewhere in the archives that there's a problem implementing this due to the need to link to libc or something (hand wavy). can anyone she