> #define SAFER_CTIME_BUFSIZE 35

Make that 64. For future evolutions that we don't know about yet.

Paul Eggert wrote:
> When you write this sort of thing, do you mean the properties must be 
> guaranteed on all platforms, or just on glibc?
> 
> Not sure it's worth the hassle of thinking out and documenting this 
> stuff portably. Too much depends on the underlying implementation.

I agree. The doc should not say anything about "26 characters",
about the month names, about the Gregorian calendar, about years before AD,
etc. And instead of "The function's Thread safety attribute value is
MT-Safe env locale." (who understands that terminology?!) it should better
say "The result depends on the environment variable TZ."

Bruno




Reply via email to