|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r52383 - trunk/libs/filesystem/src
From: bdawes_at_[hidden]
Date: 2009-04-14 09:27:45
Author: bemandawes
Date: 2009-04-14 09:27:44 EDT (Tue, 14 Apr 2009)
New Revision: 52383
URL: http://svn.boost.org/trac/boost/changeset/52383
Log:
Filesystem: fix #1452
Text files modified:
trunk/libs/filesystem/src/path.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
Modified: trunk/libs/filesystem/src/path.cpp
==============================================================================
--- trunk/libs/filesystem/src/path.cpp (original)
+++ trunk/libs/filesystem/src/path.cpp 2009-04-14 09:27:44 EDT (Tue, 14 Apr 2009)
@@ -34,8 +34,12 @@
// occurred before main(), preventing exceptions from being caught.)
std::locale & loc()
{
+#if !defined(macintosh) && !defined(__APPLE__) && !defined(__APPLE_CC__)
// ISO C calls this "the locale-specific native environment":
static std::locale lc("");
+#else
+ static std::locale lc = std::locale(); // Mac OS doesn't support locale("")
+#endif
return lc;
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk