On 6/11/24 13:53, Alejandro Colomar wrote:
+The
+.BR tzset ()
+function initializes these variables to unspecified values if this
Can you confirm that the wording is precise?
Yes, see:
https://austingroupbugs.net/view.php?id=1816
If it initializes to unspecified values, I guess it's legal (IIRC) to
read them (even if useless). Am I understanding correctly?
Yes, so long as you've called tzset either directly or indirectly. If
you've never called tzset then it is a gray area (are they initialized?
it would be strange if not, but the standards aren't clear).
By the way, a FUTURE DIRECTIONS section of POSIX will plan to remove the
variables (see the URL above). Perhaps you could add a FUTURE DIRECTIONS
section?