Hash :
acb87f50
Author :
Date :
2024-06-16T15:44:17
nstrftime,time_rz: don’t depend on tzname * lib/strftime.c (HAVE_TZNAME_ARRAY) [_LIBC]: Remove. All uses removed. (__strftime_internal): Simplify calculation of zone to be closer to what glibc does. However, in Gnulib do not look at tzname as this is problematic for all the usual reasons; instead, use the underlying strftime with %Z, making sure that call to the underlying strftime is now always compiled in the non-glibc case. Set and revert TZ as needed around the underlying call. * lib/time-internal.h (struct tm_zone) [HAVE_TZNAME_ARRAY && !HAVE_STRUCT_TM_TM_ZONE]: Remove tzname_copy. All uses removed. (set_tz, revert_tz): Declare, as they’re now extern. (local_tz): Move here from time_rz.c, and now a macro. * lib/time_rz.c (save_abbr): Do not worry about tzname_copy, since strftime.c no longer needs it. Instead, save abbrs only from tm_zone. * modules/c-nstrftime, modules/nstrftime, modules/time_rz: (Depends-on): Remove tzname.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
Description:
c_nstrftime() function: convert date and time to string, with GNU extensions, in "C" locale.
Files:
lib/strftime.h
lib/c-nstrftime.c
lib/strftime.c
m4/c-nstrftime.m4
m4/tm_gmtoff.m4
Depends-on:
attribute
c-ctype
c99
errno
extensions
intprops
libc-config
locale
stdbool
stdckdint
time_rz
configure.ac:
gl_C_GNU_STRFTIME
Makefile.am:
lib_SOURCES += c-nstrftime.c
Include:
"strftime.h"
License:
LGPL
Maintainer:
Jim Meyering, glibc