Boost C++ Libraries: Ticket #9182: Boost-filesystem std::runtime_error: locale::facet::_S_create_c_locale name not valid failure on Xamarin.Android https://svn.boost.org/trac10/ticket/9182 <p> On Xamarin.Android with boost 1.52.0, I'm getting locale::facet::_S_create_c_locale name not valid when calling system_complete where the locale is set to locale -c. </p> <p> This failure occurs both when using Xamarin binding with .jar library and when using PInvoke mechanism to call native C library directly. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9182 Trac 1.4.3 viboes Tue, 08 Oct 2013 17:42:11 GMT <link>https://svn.boost.org/trac10/ticket/9182#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9182#comment:1</guid> <description> <p> Is this related to <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8930" title="#8930: Bugs: boost::path::root_directory() throws locale::facet::_S_create_c_locale ... (closed: fixed)">#8930</a> boost::path::root_directory() throws locale::facet::_S_create_c_locale name not valid? or <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8352" title="#8352: Bugs: Boost-filesystem std::runtime_error: locale::facet::_S_create_c_locale ... (closed: fixed)">#8352</a> Boost-filesystem std::runtime_error: locale::facet::_S_create_c_locale name not valid failure on OpenBSD? </p> </description> <category>Ticket</category> </item> <item> <author>Shirley Gong <sgong@…></author> <pubDate>Tue, 08 Oct 2013 17:52:43 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9182#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9182#comment:2</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/9182#comment:1" title="Comment 1">viboes</a>: </p> <blockquote class="citation"> <p> Is this related to <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8930" title="#8930: Bugs: boost::path::root_directory() throws locale::facet::_S_create_c_locale ... (closed: fixed)">#8930</a> boost::path::root_directory() throws locale::facet::_S_create_c_locale name not valid? or <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8352" title="#8352: Bugs: Boost-filesystem std::runtime_error: locale::facet::_S_create_c_locale ... (closed: fixed)">#8352</a> Boost-filesystem std::runtime_error: locale::facet::_S_create_c_locale name not valid failure on OpenBSD? </p> </blockquote> <p> This is very similar to <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8930" title="#8930: Bugs: boost::path::root_directory() throws locale::facet::_S_create_c_locale ... (closed: fixed)">#8930</a> except it's happening on Android (particularly, when developing Android apps with Xamarin). </p> <p> Calling std::setlocale(LC_ALL, "C"); does not solve the problem. I had to call setenv("LANG", "C", 1); to get rid of the exception. </p> </description> <category>Ticket</category> </item> <item> <author>Shirley Gong <sgong@…></author> <pubDate>Tue, 08 Oct 2013 17:53:58 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9182#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9182#comment:3</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/9182#comment:2" title="Comment 2">Shirley Gong &lt;sgong@…&gt;</a>: </p> <blockquote class="citation"> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/9182#comment:1" title="Comment 1">viboes</a>: </p> <blockquote class="citation"> <p> Is this related to <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8930" title="#8930: Bugs: boost::path::root_directory() throws locale::facet::_S_create_c_locale ... (closed: fixed)">#8930</a> boost::path::root_directory() throws locale::facet::_S_create_c_locale name not valid? or <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8352" title="#8352: Bugs: Boost-filesystem std::runtime_error: locale::facet::_S_create_c_locale ... (closed: fixed)">#8352</a> Boost-filesystem std::runtime_error: locale::facet::_S_create_c_locale name not valid failure on OpenBSD? </p> </blockquote> <p> This is very similar to <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8930" title="#8930: Bugs: boost::path::root_directory() throws locale::facet::_S_create_c_locale ... (closed: fixed)">#8930</a> except it's happening on Android (particularly, when developing Android apps with Xamarin). </p> <p> Calling std::setlocale(LC_ALL, "C"); does not solve the problem. I had to call setenv("LANG", "C", 1); to get rid of the exception. </p> </blockquote> <p> Sorry I meant similar to <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8352" title="#8352: Bugs: Boost-filesystem std::runtime_error: locale::facet::_S_create_c_locale ... (closed: fixed)">#8352</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Beman Dawes</dc:creator> <pubDate>Thu, 07 Aug 2014 12:58:11 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/9182#comment:4 https://svn.boost.org/trac10/ticket/9182#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> Hi Shirley, </p> <p> 1.56.0, which should ship in a few days, has numerous fixes for Android and Filesystem. Is it possible for you to test against it? The files for 1.56.0 RC3 are available at <a class="ext-link" href="http://boost.cowic.de/rc/"><span class="icon">​</span>http://boost.cowic.de/rc/</a> (Look down near the bottom of the list). </p> <p> Thanks, </p> <p> --Beman </p> Ticket Beman Dawes Wed, 29 Oct 2014 13:24:56 GMT status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/9182#comment:5 https://svn.boost.org/trac10/ticket/9182#comment:5 <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> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.57.0</span> </li> </ul> <p> I'm marking this "fixed" since it appears to be the same as reported in several other tickets that have been fixed for Boost 1.57.0, and have been tested on Linux. </p> <p> If this is still failing in the 1.57.0 release, please reopen the ticket and supply a simple test program that fails. </p> <p> Thanks, </p> <p> --Beman </p> Ticket