Mail Archives: djgpp/2000/12/23/16:21:34
"Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> wrote:
> > In respect of %z, what needs to be done to make strftime() compliant
> > with current standards?
>
> It should work like in glibc.
>
> But C99 defines about a dozen more conversion specifiers which aren't
> supported by DJGPP right now. It would be nice to add them as well.
I agree, but this all takes time. If %z is fixed now shouldn't it go
in?
Actually, I did also start work on implementing some of the missing
features. A couple of these, such as %P, are complete no-brainers and
are easily added. Others require some crazy date maths which is just
taking too long to figure out.
If someone has the time to figure out the calculation for week numbers
(%V) from any supplied date, that would help. I have a template
function for this if anyone is interested.
FWIW, I only see about 6 conversion specifiers that are missing from
DJGPP or do not do what they are supposed to, unless you want to count
%O and %E modifiers.
None of these seem particularly critical, at least no more so than %z.
Which major new functionality from C99 are you refering to? Note that
someone else has already posted a patch which reports to add locale
support to DJGPP.
BTW, if I fill a struct tm with values for 0/Jan/YYYY, then call
mktime(), it should be modified to 31/Dec/(YYYY-1), right? This isn't
happening.
- Raw text -