Boost C++ Libraries: Ticket #9125: Boost using of getenv prohibits its use on Windows Store application https://svn.boost.org/trac10/ticket/9125 <p> getenv function is absent in Windows Store application so one can't link with at least boost.locale when build an application which targets windows 8.1. It seems that it did link well with apps targeting Windows 8.0, though. I've stuck with Locale part only but I believe other parts of boost may be involved too. </p> <p> See the full list of the forsaken API here: <a class="ext-link" href="http://msdn.microsoft.com/en-us/library/windows/apps/jj606124.aspx"><span class="icon">​</span>http://msdn.microsoft.com/en-us/library/windows/apps/jj606124.aspx</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9125 Trac 1.4.3 Artyom Beilis Tue, 17 Sep 2013 14:57:22 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/9125#comment:1 https://svn.boost.org/trac10/ticket/9125#comment:1 <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">invalid</span> </li> </ul> <p> Boost.Locale requires support of standard C and C++ libraries. getenv is standard C function and should be supported by the API to work. </p> <p> Such basic functionality should be present to make any normal application work. </p> Ticket ixSci <beholder@…> Tue, 17 Sep 2013 15:04:54 GMT <link>https://svn.boost.org/trac10/ticket/9125#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9125#comment:2</guid> <description> <p> Still WIndows 8.1 doesn't support it for the Store apps. Don't you think it is better to add a workaround to have a possibility to use Boost.Locale with <a class="missing wiki">WinStore</a> rather than just ignore it? All the more you can just cut the getenv part of Boost.Locale without any harm for the end user if he doesn't use environmental variables for the locale determination. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Artyom Beilis</dc:creator> <pubDate>Sat, 21 Sep 2013 09:10:47 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9125#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9125#comment:3</guid> <description> <p> You are welcome to provide a patch that provides an adoption for <a class="missing wiki">WinStore</a>. </p> <p> Requirements: </p> <ul><li>Automatic detection of build for <a class="missing wiki">WinStore</a> (if feasible) </li><li>If impossible to detect <a class="missing wiki">WinStore</a> - provide boost.build option to build for Windows store </li><li>Make sure the tests pass on this platform </li></ul><p> Than I'll apply such a patch. I'm more than sure that <code>getenv</code> would be the least of all the problems and many test would likely to fail for different reasons. </p> <p> So you are more than welcome to provide a <strong>complete</strong> solution. I can't provide it as I neither have Windows 8 not interested in it. </p> </description> <category>Ticket</category> </item> <item> <author>ixSci <beholder@…></author> <pubDate>Tue, 24 Sep 2013 14:28:32 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/9125 https://svn.boost.org/trac10/ticket/9125 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">locale_v1.patch</span> </li> </ul> Ticket ixSci <beholder@…> Tue, 24 Sep 2013 14:28:43 GMT attachment set https://svn.boost.org/trac10/ticket/9125 https://svn.boost.org/trac10/ticket/9125 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">locale_v2.patch</span> </li> </ul> Ticket ixSci <beholder@…> Tue, 24 Sep 2013 14:38:39 GMT <link>https://svn.boost.org/trac10/ticket/9125#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9125#comment:4</guid> <description> <p> Added 2 possible patches: v1 is local to locale and v2 is somehow related implementation to another ticket with a similar problem(<a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/9124"><span class="icon">​</span>https://svn.boost.org/trac/boost/ticket/9124</a>) </p> <p> In both cases it requires to define BOOST_FOR_WINRT during compilation with bjam. Tests pass, as far as I can tell. I've run bjam from test subfolder and seen <strong>passed</strong> only. I didn't fund any report or conclusion, though. </p> <blockquote> <p> Automatic detection of build for <a class="missing wiki">WinStore</a>? (if feasible) </p> </blockquote> <p> Impossible since one can use plain old applications on Windows 8 with new Windows Store ones in the same time. So one should be explicit about his choice. </p> <blockquote> <p> I'm more than sure that getenv would be the least of all the problems and many test would likely to fail for different reasons </p> </blockquote> <p> It may be true but one can't test it with the tests library has because new thins are applied to WinRT applications only and afaik you can't build console application with WinRT support. So whoever use WinRT with boost.locale will find bugs if there is something other there. I just tested basic functional of translating: it works. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Artyom Beilis</dc:creator> <pubDate>Wed, 02 Oct 2013 09:22:32 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9125#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9125#comment:5</guid> <description> <ol><li>Have you run full Boost.Locale test suite on WinRT/Store? </li><li>Who defines BOOST_FOR_WINRT? Does boost-build defines it automatically? </li></ol><p> There are parts that are not related to boost.locale I can't apply them - so first address this issue. </p> </description> <category>Ticket</category> </item> </channel> </rss>