[Boost-bugs] [Boost C++ Libraries] #1859: boost::gregorian::to_tm() doesn't fill in tm_zone on Mac OS X

Subject: [Boost-bugs] [Boost C++ Libraries] #1859: boost::gregorian::to_tm() doesn't fill in tm_zone on Mac OS X
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-04-24 17:24:48


#1859: boost::gregorian::to_tm() doesn't fill in tm_zone on Mac OS X
---------------------------------------------+------------------------------
 Reporter: Phillip Seaver <phil_at_[hidden]> | Owner: az_sw_dude
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: date_time
  Version: Boost 1.35.0 | Severity: Problem
 Keywords: |
---------------------------------------------+------------------------------
 On OS X (at least), struct tm contains the tm_zone field:

 {{{
 char *tm_zone; /* timezone abbreviation */
 }}}

 Since it's uninitialized, strftime() can crash when it tries to use it.

 I'm not sure what the correct fix is -- I worked around it by getting a tm
 from localtime() and copying its tm_zone field.

 I'm using 1.33.1, but it doesn't appear to have changed on the trunk in a
 way that would fix the problem.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1859>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC