Boost C++ Libraries: Ticket #9190: boost::filesystem::extension(...) throws runtime_error if the locale is unknown. https://svn.boost.org/trac10/ticket/9190 <p> Running the following program gives an std::runtime_error if the locale is set to something which the system doesn't support. </p> <pre class="wiki">#include &lt;boost/filesystem.hpp&gt; int main() { boost::filesystem::extension("test.txt"); } </pre><pre class="wiki">&gt; LC_CTYPE=unknown ./a.out &gt; terminate called after throwing an instance of 'std::runtime_error' &gt; what(): locale::facet::_S_create_c_locale name not valid &gt; Aborted </pre><p> This is reproducible on debian testing and ubuntu 12.04 but I think it's a general issue. </p> <ol><li>Is it the right behavior to throw an exception? </li></ol><ol start="2"><li>If it should throw an exception, it should have been of type filesystem_error. </li></ol> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9190 Trac 1.4.3