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: John Pavel <jrp@…> Owned by: Beman Dawes
Milestone: Boost 1.36.0 Component: filesystem
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

Change History (3)

comment:2 by dirk@…, 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 Beman Dawes, 14 years ago

Resolution: fixed
Status: newclosed

This is a known problem with MacOS and std::locale(""). I've added a workaround to use std::locale() instead.

Note: See TracTickets for help on using tickets.