Re: XCode & boost::wpath - std::locale::facet_S_create_c_locale exception
Re: XCode & boost::wpath - std::locale::facet_S_create_c_locale exception
- Subject: Re: XCode & boost::wpath - std::locale::facet_S_create_c_locale exception
- From: Marshall Clow <email@hidden>
- Date: Tue, 7 Apr 2009 09:55:02 -0700
At 9:35 AM -0700 4/7/09, Chris Espinosa wrote:
On Apr 7, 2009, at 2:31 AM, Alan Shouls wrote:
I am porting a windows application to OSX and am having problems in
boost::wpath and xcode. The existing code-base is heavily based on
boost and stl.
When I run the application I am developing in XCode I get an
exception thrown in std::locale::facet_S_create_c_locale. The
locale code is called from within boost::wpath. This exception
happens every time I run the application from within XCode unless I
quit XCode and restart it. Once I quit XCode and restart the
problem goes away!!? If I run the application outside of XCode the
problem never happens - the exception is just not raised.
So I *could* just make sure that I quit XCode and restart it before
I do any development. Doing this is not a big inconvenience to my
development - however the problem troubles me. I have no idea what
is causing it or why restarting the development environment should
'cure' the problem. Until I understand the problem I don't know if
I can safely ignore it or if there is something I should do to fix
it.
Does anyone have any insight into this issue.
This exception?
<https://svn.boost.org/trac/boost/ticket/1458>#1458 (Darwin Tiger
throws std::runtime_error: locale::facet::_S_create_c_locale name
not valid) - Boost C++ Libraries - Trac
Chris
I can verify this.
The following program throws, too:
$ cat junk.cpp
#include <locale>
int main ( int argc, char *argv [] ) {
std::locale::global(std::locale(""));
return 0;
}
$ g++ junk.cpp && ./a.out
terminate called after throwing an instance of 'std::runtime_error'
what(): locale::facet::_S_create_c_locale name not valid
Abort trap
$ g++ -v
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5490~1/src/configure
--disable-checking -enable-werror --prefix=/usr --mandir=/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-4.0/
--with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib
--build=i686-apple-darwin9 --with-arch=apple --with-tune=generic
--host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5490)
--
-- Marshall
Marshall Clow Idio Software <mailto:email@hidden>
It is by caffeine alone I set my mind in motion.
It is by the beans of Java that thoughts acquire speed,
the hands acquire shaking, the shaking becomes a warning.
It is by caffeine alone I set my mind in motion.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden