Re: Discuss regarding Ticket 263

Jean-Edouard Babin <[email protected]>
Newsgroups gmane.comp.db.rrdtool.devel
Message-ID <[email protected]>
On Thu, May 20, 2010 at 8:33 AM, Tobias Oetiker <[email protected]> wrote:

>> I called fct1 time_clean. I tried to catch as much formatter as
>> possible but of course as strftime() formatter's are not the same
>> depending of OS my code can't handle this very well...
>
> hmmm, I wonder if strftime itself could somehow be queried to help ... the
> list of characters you handle there seems awfully long to me ...

I've check how I could use strftime but did not find...
Characters I handle are characters handled by strftime on most linux
system (SVr4, C89, C89 + Single Unix Specification, Olson's timezone
package and glibc extension)
I think handling more characters is better than less. There is, I
guess, fewer probability that someone tried to display a raw %P (it's
a GNU extension) than someone trying to display 'am' or 'pm' on GNU
System.
But I could restrict the character set to SVr4, C89, C89.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.