Boost C++ Libraries: Ticket #1859: boost::gregorian::to_tm() doesn't fill in tm_zone on Mac OS X https://svn.boost.org/trac10/ticket/1859 <p> On OS X (at least), struct tm contains the tm_zone field: </p> <pre class="wiki">char *tm_zone; /* timezone abbreviation */ </pre><p> Since it's uninitialized, strftime() can crash when it tries to use it. </p> <p> 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. </p> <p> 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. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1859 Trac 1.4.3 Andrey Semashev Thu, 13 Nov 2008 21:06:15 GMT <link>https://svn.boost.org/trac10/ticket/1859#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1859#comment:1</guid> <description> <p> Does Mac OS X use glibc? Is this field detectable with <span class="underline">USE_BSD or some other macros? </span></p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrey Semashev</dc:creator> <pubDate>Thu, 04 Jun 2009 08:31:37 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/1859#comment:2 https://svn.boost.org/trac10/ticket/1859#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Added zero initialization in revision 53618 (will be released in 1.40). I can't verify if that actually fixes the problem but it is better anyway. If the problem persists, please, reopen. </p> Ticket