Boost C++ Libraries: Ticket #4688: std::runtime_error: locale::facet::_S_create_c_locale name not valid https://svn.boost.org/trac10/ticket/4688 <p> Try to compile empty program: int main() {} And link it with boost_filesystem </p> <p> This program will crash throwing exception "std::runtime_error: locale::facet::_S_create_c_locale name not valid" on some systems (FreeBSD and some linuxes) when current locale (LANG,LC_ALL) is not "C" </p> <p> Systems are known to be affected: <a class="missing wiki">DragonFly</a> BSD with boost 1.44 from pkgsrc FreeBSD 7.2-RELEASE with boost 1.44 may be suse linux: Sles 10 sp3 with boost 1.44 </p> <p> Locally, we have to use attached patch as workaround. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4688 Trac 1.4.3 Gennady Proskurin <gpr@…> Tue, 28 Sep 2010 08:04:04 GMT attachment set https://svn.boost.org/trac10/ticket/4688 https://svn.boost.org/trac10/ticket/4688 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_filesystem.patch</span> </li> </ul> Ticket Gennady Proskurin <gpr@…> Tue, 28 Sep 2010 08:04:13 GMT attachment set https://svn.boost.org/trac10/ticket/4688 https://svn.boost.org/trac10/ticket/4688 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_filesystem.2.patch</span> </li> </ul> Ticket jonathansternberg@… Fri, 19 Nov 2010 23:00:01 GMT <link>https://svn.boost.org/trac10/ticket/4688#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4688#comment:1</guid> <description> <p> This affected my system as well. The attached patch fixed the problem. I'm running Ubuntu 9.04 and used gcc-4.3 to compile. I downloaded the newest release (Boost 1.45.0) that was released today. </p> <pre class="wiki">Linux aquila 2.6.28-19-generic #66-Ubuntu SMP Sat Oct 16 17:39:04 UTC 2010 i686 GNU/Linux </pre> </description> <category>Ticket</category> </item> <item> <author>Seth Berrier <seth.berrier@…></author> <pubDate>Sun, 12 Dec 2010 15:19:33 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4688#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4688#comment:2</guid> <description> <p> Happens on Solaris 10 (Sun OS 5.10) with gcc-4.2.3 too. Empty program linking against boost_filesystem throws exact same exception. The patch provided fixed the problem. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 21 Apr 2011 20:36:37 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4688#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4688#comment:3</guid> <description> <p> Also Ubuntu 10.10 with gcc-4.4.4. </p> </description> <category>Ticket</category> </item> <item> <author>Sam Morris <sam@…></author> <pubDate>Tue, 31 May 2011 11:34:50 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4688#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4688#comment:4</guid> <description> <p> Duplicates in <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5100" title="#5100: Bugs: runtime_error locale::facet::_S_create_c_locale name not valid (closed: fixed)">#5100</a> and <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5289" title="#5289: Bugs: Library that uses Boost Filesystem would not start when the stdandard ... (closed: fixed)">#5289</a> (but with better patches, perhaps). </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 02 Jun 2011 14:47:57 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4688#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4688#comment:5</guid> <description> <p> Is there any information, when this bug will be fixed? This bug makes boost::filesystem unusable in production environment. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 01 Jul 2011 08:27:40 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4688#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4688#comment:6</guid> <description> <p> Still happens with Ubuntu 11.04/g++-4.5.2 and debian with g++/4.4.5. This is a very critical bug for production software as the application can only be started by overriding the locale on the command line (standard C locale seems to work; any other not). </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Beman Dawes</dc:creator> <pubDate>Fri, 01 Jul 2011 11:55:48 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/4688#comment:7 https://svn.boost.org/trac10/ticket/4688#comment:7 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> I've been working on 4688, 5289, 5100, etc. all week. I'll post a status update on the main list, rather than try to reply to each ticket individually. </p> <p> --Beman </p> Ticket platima@… Thu, 28 Jul 2011 17:02:07 GMT <link>https://svn.boost.org/trac10/ticket/4688#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4688#comment:8</guid> <description> <p> I've had this same issue with gcc 4.5.2 and 4.5.3 on Ubuntu 8.04 and 10.04.3 (Boost 1.44.0). </p> <p> Thanks for getting it sorted :) </p> <p> -Keith </p> </description> <category>Ticket</category> </item> <item> <author>platima@…</author> <pubDate>Thu, 28 Jul 2011 17:02:46 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4688#comment:9 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4688#comment:9</guid> <description> <p> Oh and that was both i386. </p> <p> -Keith </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 29 Jul 2011 15:22:11 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4688#comment:10 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4688#comment:10</guid> <description> <p> Have you tried 1.47.0? </p> <p> The critical part of these three issues was fixed, and you should no longer have the problem at startup time. </p> <p> The issues are about to be closed. </p> <p> Thanks, </p> <p> --Beman </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 29 Jul 2011 15:29:37 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4688#comment:11 https://svn.boost.org/trac10/ticket/4688#comment:11 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fixed by changeset 72855, Fix problem of locale("") exception being thrown before main() starts on misconfigured (e.g. LANG="bad name") POSIX systems. Resolves the most serious aspect of tickets 4688, 5100, 5289. </p> <p> Boost 1.47.0 was the first release to include this fix. </p> <p> --Beman </p> Ticket platima@… Sat, 30 Jul 2011 04:04:58 GMT <link>https://svn.boost.org/trac10/ticket/4688#comment:12 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4688#comment:12</guid> <description> <p> Hey, </p> <p> Went to give 1.47.0 a shot but had some incompatibilities with our code that need to be addressed. </p> <p> Thanks -Keith </p> </description> <category>Ticket</category> </item> <item> <author>gonzalo.raposo@…</author> <pubDate>Mon, 26 Sep 2011 17:15:00 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4688#comment:13 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4688#comment:13</guid> <description> <p> I tried it with boost 1_47 but is still happen the same on FreeBSD 8.1, doesn't work with locale en_US.UTF-8 nor with C (which was working with boost 1_46_1). </p> <p> There was some compatibility issues (private functions that before were public and boost::asio::const_buffer_1 doesn't accept std::string anymore as constructor's parameter) </p> </description> <category>Ticket</category> </item> <item> <author>platima@…</author> <pubDate>Tue, 27 Sep 2011 00:35:16 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4688#comment:14 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4688#comment:14</guid> <description> <p> Hey, </p> <p> Yeah we're having the same issues reported by multiple people with 1.47.0. </p> <p> We've had to force LC_ALL=C in our launcher to avoid it, but this really isn't a nice way about it. </p> <p> Any thoughts/suggestions? Thanks -Keith </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Tue, 04 Oct 2011 22:47:17 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4688#comment:15 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4688#comment:15</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/4688#comment:13" title="Comment 13">gonzalo.raposo@…</a>: </p> <blockquote class="citation"> <p> I tried it with boost 1_47 but is still happen the same on FreeBSD 8.1, doesn't work with locale en_US.UTF-8 nor with C (which was working with boost 1_46_1). </p> </blockquote> <p> What is the "it" you are trying? Could you post code that fails? </p> <p> And exactly what happens? Are you saying that the app still throws an exception before main starts? </p> <p> Thanks, </p> <p> --Beman </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 05 Oct 2011 12:02:04 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4688#comment:16 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4688#comment:16</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/4688#comment:15" title="Comment 15">anonymous</a>: </p> <blockquote class="citation"> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/4688#comment:13" title="Comment 13">gonzalo.raposo@…</a>: </p> <blockquote class="citation"> <p> I tried it with boost 1_47 but is still happen the same on FreeBSD 8.1, doesn't work with locale en_US.UTF-8 nor with C (which was working with boost 1_46_1). </p> </blockquote> <p> What is the "it" you are trying? Could you post code that fails? </p> <p> And exactly what happens? Are you saying that the app still throws an exception before main starts? </p> <p> Thanks, </p> <p> --Beman </p> </blockquote> <p> Yes, it means that the app is still trowing the exception before main starts when locale != C. What you need to reproduce this issue is just create a simple main that uses boost.filesystem and the locale is another than C (en_US.UTF-8 for example) </p> <p> Gonzalo </p> </description> <category>Ticket</category> </item> <item> <author>mihai.dontu@…</author> <pubDate>Wed, 05 Oct 2011 22:39:13 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4688#comment:17 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4688#comment:17</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/4688#comment:16" title="Comment 16">anonymous</a>: </p> <blockquote class="citation"> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/4688#comment:15" title="Comment 15">anonymous</a>: </p> <blockquote class="citation"> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/4688#comment:13" title="Comment 13">gonzalo.raposo@…</a>: </p> <blockquote class="citation"> <p> I tried it with boost 1_47 but is still happen the same on FreeBSD 8.1, doesn't work with locale en_US.UTF-8 nor with C (which was working with boost 1_46_1). </p> </blockquote> <p> What is the "it" you are trying? Could you post code that fails? </p> <p> And exactly what happens? Are you saying that the app still throws an exception before main starts? </p> <p> Thanks, </p> <p> --Beman </p> </blockquote> <p> Yes, it means that the app is still trowing the exception before main starts when locale != C. What you need to reproduce this issue is just create a simple main that uses boost.filesystem and the locale is another than C (en_US.UTF-8 for example) </p> <p> Gonzalo </p> </blockquote> <p> I have came across the same problem, only I am using a cross compiler. The true issue lies in how GCC (libstdc++) is configured. On some Linux distributions and apparently FreeBSD, the C++ runtime is configured to use generic locale support. This is the one that handles nothing but "C". However, if one configures GCC with "--enable-clocale=gnu", a more advanced implementation becomes available. I don't know if it's tied in any way to the GNU C library (it doesn't appear to) and I also don't know the proper way to check if you have "generic" or "gnu" enabled. I used </p> <div class="wiki-code"><div class="code"><pre>$ objdump -D -C -j .text -M intel libstdc++.so.6 &gt;libstdc++.so.6.S </pre></div></div><p> to look in the assembler dump for _S_create_c_locale(). A call to "newlocale@plt" tells me I have "gnu" enabled. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 13 Jan 2012 21:17:34 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/4688 https://svn.boost.org/trac10/ticket/4688 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_1_47_0_filesystem_freebsd.patch</span> </li> </ul> <p> boost filesystem patch to include FreeBSD in the list of BSD platforms (!) that need locale fix </p> Ticket charles@… Thu, 17 Jan 2013 02:42:46 GMT <link>https://svn.boost.org/trac10/ticket/4688#comment:18 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4688#comment:18</guid> <description> <p> I see this on Solaris 11 as well in boost 1.52 </p> </description> <category>Ticket</category> </item> <item> <author>ruipfernandes@…</author> <pubDate>Sat, 26 Jan 2013 00:45:11 GMT</pubDate> <title>status, version changed; resolution deleted https://svn.boost.org/trac10/ticket/4688#comment:19 https://svn.boost.org/trac10/ticket/4688#comment:19 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>version</strong> <span class="trac-field-old">Boost 1.44.0</span> → <span class="trac-field-new">Boost 1.52.0</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> </ul> <p> Same problem in HPUX with gcc44 </p> Ticket bapt@… Wed, 06 Feb 2013 14:42:45 GMT attachment set https://svn.boost.org/trac10/ticket/4688 https://svn.boost.org/trac10/ticket/4688 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">patch-boost-filesystem-str_runtime</span> </li> </ul> <p> same patch for boost 1.52.0 </p> Ticket Beman Dawes Fri, 22 Feb 2013 14:32:52 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4688#comment:20 https://svn.boost.org/trac10/ticket/4688#comment:20 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/83083" title="Add FreeBSD support. Fix #4688">[83083]</a>) Add FreeBSD support. Fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4688" title="#4688: Bugs: std::runtime_error: locale::facet::_S_create_c_locale name not valid (closed: fixed)">#4688</a> </p> Ticket hours10000@… Mon, 04 Mar 2013 07:27:51 GMT <link>https://svn.boost.org/trac10/ticket/4688#comment:21 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4688#comment:21</guid> <description> <p> I have came accoss the same problem . GCC 4.1.0 SUSE LINUX 10.1 (x86-64) VERSION =10.1 </p> </description> <category>Ticket</category> </item> <item> <author>hours10000@…</author> <pubDate>Mon, 04 Mar 2013 07:39:55 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4688#comment:22 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4688#comment:22</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/4688#comment:21" title="Comment 21">hours10000@…</a>: </p> <blockquote class="citation"> <p> I have came accoss the same problem . GCC 4.1.0 SUSE LINUX 10.1 (x86-64) VERSION =10.1 </p> </blockquote> <p> PS; boost 1.53 </p> </description> <category>Ticket</category> </item> <item> <author>ruipfernandes@…</author> <pubDate>Wed, 13 Mar 2013 10:40:25 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4688#comment:23 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4688#comment:23</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/4688#comment:20" title="Comment 20">bemandawes</a>: </p> <blockquote class="citation"> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/83083" title="Add FreeBSD support. Fix #4688">[83083]</a>) Add FreeBSD support. Fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4688" title="#4688: Bugs: std::runtime_error: locale::facet::_S_create_c_locale name not valid (closed: fixed)">#4688</a> </p> </blockquote> <p> This change (83083) is not totally correct. As you can see in the patch by bapt added at 6 February, there are three lines where the change should be done, however only two of them were changed in this changeset. I also figured out that for HP-UX a similar procedure solves the problem. </p> <p> Please do replace the following string (three occurrences): </p> <pre class="wiki">defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) </pre><p> with this one: </p> <pre class="wiki">defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) || defined(__FreeBSD__) || defined(__hpux) </pre><p> I'd also like to point out another fix I asked (misspelled macro name <code>_INCLUDE_STDC__SOURCE_199901</code>), related to ticket <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5048" title="#5048: Bugs: compilation error under ia64 HP-UX11i with gcc-4.4.0 (closed: fixed)">#5048</a> (I added a comment to the ticket) </p> <p> Thank you very much. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Beman Dawes</dc:creator> <pubDate>Fri, 15 Mar 2013 17:28:20 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4688#comment:24 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4688#comment:24</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/4688#comment:22" title="Comment 22">hours10000@…</a>: </p> <blockquote class="citation"> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/4688#comment:21" title="Comment 21">hours10000@…</a>: </p> <blockquote class="citation"> <p> I have came accoss the same problem . GCC 4.1.0 SUSE LINUX 10.1 (x86-64) VERSION =10.1 </p> </blockquote> <p> PS; boost 1.53 </p> </blockquote> <p> You need to test against svn trunk. The fix changeset was applied after 1.53 shipped. </p> <p> --Beman </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Beman Dawes</dc:creator> <pubDate>Fri, 15 Mar 2013 17:49:51 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4688#comment:25 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4688#comment:25</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/4688#comment:23" title="Comment 23">ruipfernandes@…</a>: </p> <blockquote class="citation"> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/4688#comment:20" title="Comment 20">bemandawes</a>: </p> <blockquote class="citation"> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/83083" title="Add FreeBSD support. Fix #4688">[83083]</a>) Add FreeBSD support. Fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4688" title="#4688: Bugs: std::runtime_error: locale::facet::_S_create_c_locale name not valid (closed: fixed)">#4688</a> </p> </blockquote> <p> This change (83083) is not totally correct. As you can see in the patch by bapt added at 6 February, there are three lines where the change should be done, however only two of them were changed in this changeset. </p> </blockquote> <p> The current svn trunk, which is what the fix was applied against, has only two occurrences. </p> <blockquote class="citation"> <p> I also figured out that for HP-UX a similar procedure solves the problem. </p> <p> Please do replace the following string (three occurrences): </p> <pre class="wiki">defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) </pre><p> with this one: </p> <pre class="wiki">defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) || defined(__FreeBSD__) || defined(__hpux) </pre></blockquote> <p> I'm nervous about adding HP-UX. Are you sure that all HP-UX systems use UTF-8 encoding? Do you have a link to HP docs on that? </p> <blockquote class="citation"> <p> I'd also like to point out another fix I asked (misspelled macro name <code>_INCLUDE_STDC__SOURCE_199901</code>), related to ticket <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5048" title="#5048: Bugs: compilation error under ia64 HP-UX11i with gcc-4.4.0 (closed: fixed)">#5048</a> (I added a comment to the ticket) </p> </blockquote> <p> I'll take a look. Thanks, </p> <p> --Beman </p> </description> <category>Ticket</category> </item> <item> <author>hendrich@…</author> <pubDate>Tue, 01 Oct 2013 22:48:19 GMT</pubDate> <title>status, severity changed; resolution deleted https://svn.boost.org/trac10/ticket/4688#comment:26 https://svn.boost.org/trac10/ticket/4688#comment:26 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> <li><strong>severity</strong> <span class="trac-field-old">Problem</span> → <span class="trac-field-new">Showstopper</span> </li> </ul> <p> Complete fuckup. Setting any LANG makes Ubuntu unusable. On my 12.04: </p> <p> export LANG=de export LANG=en_US export LANG=en_US.UTF-8 </p> <p> makes every subsequent program crash with the boost crazyness. </p> Ticket anonymous Sat, 15 Feb 2014 20:43:41 GMT <link>https://svn.boost.org/trac10/ticket/4688#comment:27 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4688#comment:27</guid> <description> <p> Happens to me as well, using Boost 1.55.0. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 21 May 2014 10:53:36 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4688#comment:28 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4688#comment:28</guid> <description> <p> Using boost 1.52 on gentoo, I got the same error message. Google landed me here. </p> <p> I had LANG=en_US.UTF-8. Doing unset LANG and then re-running my application worked. </p> </description> <category>Ticket</category> </item> <item> <author>Marcin Konarski <marcin.konarski+boost@…></author> <pubDate>Thu, 12 Jun 2014 19:35:55 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4688#comment:29 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4688#comment:29</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/4688#comment:26" title="Comment 26">hendrich@…</a>: </p> <blockquote class="citation"> <p> Complete fuckup. Setting any LANG makes Ubuntu unusable. On my 12.04: </p> <p> export LANG=de export LANG=en_US export LANG=en_US.UTF-8 </p> <p> makes every subsequent program crash with the boost crazyness. </p> </blockquote> <p> You are quite wrong, Ubuntu 12.04 has boost version 1.48 which already has this bug fixed. Still your application may crash but if it does it is bug in your application and not in boost, bug which coincidentally manifests itself the same way. </p> <p> Original bug in boost was an exception thrown in initialization of global object, which happened before main() and hence was (almost) impossible to handle in programmatic way. </p> <p> Since forementioned initialization was turned into lazy initialization, the same exception, which by the way is quite valid, can be handled programmaticaly. </p> <p> This bug should be marked as fixed. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Beman Dawes</dc:creator> <pubDate>Wed, 06 Aug 2014 13:03:56 GMT</pubDate> <title>status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/4688#comment:30 https://svn.boost.org/trac10/ticket/4688#comment:30 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.56.0</span> </li> </ul> <p> <code>std::runtime_error: locale::facet::_S_create_c_locale name not valid</code> exceptions may be caused by Boost.Filesystem errors, user program errors, or user system configuration errors. Comments on this thread mixed all three types of errors, making the thread hard to parse. </p> <blockquote> <p> Please do not reopen this thread. Please open a new issue if you encounter a Boost.Filesystem error in 1.56.0 <span class="underline">and it is not already described in another open filesystem issue</span>. Please include a test program that illustrates the error, with instructions as to how to build and execute the program. Please do not bother to report locale and codecvt related errors in versions prior to 1.56.0 unless they also occur in 1.56.0, which made important changes locale and codecvt handling. </p> </blockquote> <p> Thanks, </p> <p> --Beman </p> Ticket