Boost C++ Libraries: Ticket #9089: missing locale in strings_from_facet.hpp https://svn.boost.org/trac10/ticket/9089 <p> see my example: </p> <pre class="wiki"> std::locale::global(std::locale("")); boost::posix_time::ptime t; std::stringstream ss; std::string s = "Sat, 07-Sep-43 10:40:59 GMT"; ss.str(s); boost::posix_time::time_input_facet* rfc850_date_workarround2 = new boost::posix_time::time_input_facet("%a, %d-%b-%y %H:%M:%S GMT"); ss.imbue(std::locale(std::locale::classic(), rfc850_date_workarround2)); ss &gt;&gt; t; if (t != boost::posix_time::not_a_date_time) { std::cout &lt;&lt; ss.str() &lt;&lt; std::endl; } </pre><p> I expected the output: </p> <pre class="wiki">2043-Sep-07 10:40:59 </pre><p> but in fact no output... </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9089 Trac 1.4.3 Jackarain Sat, 07 Sep 2013 17:08:08 GMT attachment set https://svn.boost.org/trac10/ticket/9089 https://svn.boost.org/trac10/ticket/9089 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">strings_from_facet.hpp.patch</span> </li> </ul> <p> fixed missing locale in strings_from_facet.hpp </p> Ticket Marshall Clow Sat, 15 Mar 2014 16:09:13 GMT <link>https://svn.boost.org/trac10/ticket/9089#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9089#comment:1</guid> <description> <p> I just tried this with both the current trunk and the 1.55.0 release (Clang 3.4, Mac OS X 10.9), and got the output that you expected in both cases. </p> <p> Can you provide more information about your setup? (OS, compiler, etc)? Does this occur for you with boost 1.55.0? </p> </description> <category>Ticket</category> </item> </channel> </rss>