bug-gnulib
[Top][All Lists]
Advanced

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

[PATCH 0/7] avoiding tzname usage in Gnulib code


From: Paul Eggert
Subject: [PATCH 0/7] avoiding tzname usage in Gnulib code
Date: Sun, 16 Jun 2024 16:45:23 -0700

tzname is problematic, because (as now mentioned in the Gnulib manual)
it's unsafe in multithreaded code and its contents are typically
unspecified even in single-threaded code.  These patches rework
the Gnulib code so that no other module depends on tzname.

Paul Eggert (7):
  nstrftime: rename HAVE_TM_GMTOFF
  time_r-tests: avoid tzname test
  time: document struct tm portability
  time_r: refactor tm_zone tests
  parse-datetime: don’t depend on tzname
  nstrftime,time_rz: don’t depend on tzname
  nstrftime: omit never-used code

 ChangeLog                   |  57 +++++++++++++++
 doc/posix-headers/time.texi |  15 ++++
 lib/parse-datetime.y        | 123 ++++++++++++++++---------------
 lib/strftime.c              | 141 ++++++++++++++++++------------------
 lib/strptime.c              |   2 +-
 lib/time-internal.h         |  21 ++++--
 lib/time_rz.c               |  45 ++----------
 m4/tm_gmtoff.m4             |  26 +++++--
 modules/c-nstrftime         |   3 +-
 modules/nstrftime           |   3 +-
 modules/parse-datetime      |   3 +-
 modules/time_r-tests        |   6 +-
 modules/time_rz             |   1 -
 tests/test-parse-datetime.c |   6 +-
 14 files changed, 257 insertions(+), 195 deletions(-)

--
2.43.0




reply via email to

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