freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Brian Bruns <camber AT ais.org>
- To: TDS Development Group <freetds AT franklin.metalab.unc.edu>
- Subject: Re: New build warnings; datetime format issue
- Date: Wed, 29 May 2002 08:09:19 -0400 (EDT)
Bill,
A short recap of locales. We added a locales.conf file to $SYBASE/etc
that is similar in format to the freetds.conf file with "default" and
sections such as "en_US". FreeTDS first checks default, then overrides
with the setting from $LANG and looks for char set, language, and date
format options. The "date format" parameter is a format string suitable
for strftime(). Here in lies the problem, we no longer use strftime in
favour of your very fine implementation that doesn't rely on unix time_t.
;-)
So, now it falls to someone to add a function similiar to strftime()
capable formating the cracked date (month, day, year, hour, etc...), and
most importantly guarding for buffer overflows.
It's top on my list if I can round up some time, which this weekend is
looking good so far.
Cheers,
Brian
On Tue, 28 May 2002, Bill Thompson wrote:
> thanks guys for the input. The truth is out there...
>
> It's fair to say I only mimicked the behaviour of dbconvert (db-lib only)
> from Sybase open client 10. I'm not familiar with ct-lib.
>
> The locales file solution seems to be the way forward.
> I gather that this has been implemented in 0.53 fairly recently, but I'm
> not familiar with what has been done.
> At the end of the day, the date routines in convert.c have everything they
> need to output the date in any format we choose.
> The end result is just a sprintf()....
>
-
New build warnings; datetime format issue,
James K. Lowden, 05/28/2002
- <Possible follow-up(s)>
- Re: New build warnings; datetime format issue, Bill Thompson, 05/28/2002
- Re: New build warnings; datetime format issue, Lowden, James K, 05/28/2002
- Re: New build warnings; datetime format issue, Michael Peppler, 05/28/2002
- Re: New build warnings; datetime format issue, Bill Thompson, 05/28/2002
- Re: New build warnings; datetime format issue, Brian Bruns, 05/29/2002
- Re: New build warnings; datetime format issue, Brian Bruns, 05/29/2002
Archive powered by MHonArc 2.6.24.