We should fix this, without a doubt. Please file a bug in the bug system at http://nagoya.apache.org so that this can be tracked.
Ryan ---------------------------------------------- Ryan Bloom [EMAIL PROTECTED] 645 Howard St. [EMAIL PROTECTED] San Francisco, CA > -----Original Message----- > From: Ryan Morgan [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 17, 2002 12:16 PM > To: dev@apr.apache.org > Subject: apr_strftime not portable > > > apr_strftime calls the platform's native strftime, which differs between > platforms (solaris and linux for example). take the following code: > > apr_explode_localtime(&xt, apr_time_now()); > apr_strftime(buf, &retcode, sizeof(buf), "%G", &xt); > > this will result in buf containing '2002' on linux and '%G' on solaris. > (because solaris strftime does not support %G, but linux does) > > any ideas on how we can (or if we should) fix this? i think due to the > differences between platforms we would probably need to implement our own > strftime. ideas? > > -Ryan