bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Let's remove Gnulib's ctime module


From: Bruno Haible
Subject: Re: Let's remove Gnulib's ctime module
Date: Fri, 09 Feb 2024 16:22:26 +0100

> #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

[Prev in Thread] Current Thread [Next in Thread]