]> Savannah Git Hosting - gnulib.git/commit
strftime: fix newly-introduced bug on Solaris
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 25 Jul 2015 23:37:17 +0000 (16:37 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 26 Jul 2015 01:20:13 +0000 (18:20 -0700)
commitfe699d375f07faf11ce057c9585327c6bdb05af4
tree7fd3c8051c152894a94096b5eb4a9380f6e06f4a
parentc1340b3d346b6a76f75f59828f4d73400c56bc85
strftime: fix newly-introduced bug on Solaris

* lib/strftime.c (strftime_case_): Set the local variable 'zone'
consistently at the start, rather than doing some of the setup at
the start and some in the %Z format spec.  This is cleaner, and
works better with time_rz on platforms like Solaris where struct
tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
mktime_z and localtime_rz can mess up the tzname cache.
ChangeLog
lib/strftime.c