Opened 15 years ago
Closed 14 years ago
#1458 closed Bugs (fixed)
Darwin Tiger throws std::runtime_error: locale::facet::_S_create_c_locale name not valid
Reported by: | Owned by: | Beman Dawes | |
---|---|---|---|
Milestone: | Boost 1.36.0 | Component: | filesystem |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | Cc: |
Description
... in test 15 at http://beta.boost.org/development/tests/trunk/developer/output/jrp-darwin-boost-bin-v2-libs-filesystem-test-fstream_test-test-darwin-debug-link-static.html
I have
LANG=en_GB.UTF-8
Change History (3)
comment:1 by , 15 years ago
comment:2 by , 14 years ago
I believe this also happens with the following piece of code:
int main()
{
std::locale::global(std::locale(""));
choke
It seems osx/bsd only supports "C" and "POSIX" (there are some post on the web saying this), which is sort of strange - why should this be and OSX does support unicode (how?)
Could this be fixed in any way? Or does Apple need to do something (I'd rather not compile my own gcc)
Best, Dirk
comment:3 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This is a known problem with MacOS and std::locale(""). I've added a workaround to use std::locale() instead.
http://beta.boost.org/development/tests/trunk/developer/output/jrp-darwin-boost-bin-v2-libs-filesystem-test-wide_test-test-darwin-debug-link-static.html also fails with the same diagnostic