diff options
author | bapt <bapt@FreeBSD.org> | 2013-02-06 22:36:02 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-02-06 22:36:02 +0800 |
commit | e2fdd405f1b4d18b43eb3a4de192a339a9fbfdb7 (patch) | |
tree | ad557eb9d818197f26e20fda1439a479e56f7977 /devel/boost-libs | |
parent | 687d8ce8991242225bb7cc63cca42a452c77aca4 (diff) | |
download | freebsd-ports-gnome-e2fdd405f1b4d18b43eb3a4de192a339a9fbfdb7.tar.gz freebsd-ports-gnome-e2fdd405f1b4d18b43eb3a4de192a339a9fbfdb7.tar.zst freebsd-ports-gnome-e2fdd405f1b4d18b43eb3a4de192a339a9fbfdb7.zip |
Add a patch to fix a std::runtime issue when building with customs locales
Reported by: avg
Tested by: avg
Diffstat (limited to 'devel/boost-libs')
-rw-r--r-- | devel/boost-libs/files/patch-boost-filesystem-str_runtime | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/devel/boost-libs/files/patch-boost-filesystem-str_runtime b/devel/boost-libs/files/patch-boost-filesystem-str_runtime new file mode 100644 index 000000000000..c3b7f3a6c401 --- /dev/null +++ b/devel/boost-libs/files/patch-boost-filesystem-str_runtime @@ -0,0 +1,29 @@ +--- libs/filesystem/src/path.cpp.orig 2012-04-16 15:36:28.000000000 +0200 ++++ libs/filesystem/src/path.cpp 2013-02-06 14:59:04.057292773 +0100 +@@ -35,7 +35,7 @@ + #ifdef BOOST_WINDOWS_API + # include "windows_file_codecvt.hpp" + # include <windows.h> +-#elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) ++#elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) || defined(__FreeBSD__) + # include <boost/filesystem/detail/utf8_codecvt_facet.hpp> + #endif + +@@ -828,7 +828,7 @@ + codecvt_facet_ptr(&std::use_facet<std::codecvt<wchar_t, char, std::mbstate_t> > + (path_locale)); + +-#elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) ++#elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) || defined(__FreeBSD__) + + // "All BSD system functions expect their string parameters to be in UTF-8 encoding + // and nothing else." See +@@ -903,7 +903,7 @@ + const path::codecvt_type& path::codecvt() + { + # if defined(BOOST_POSIX_API) && \ +- !(defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)) ++ !(defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) || defined(__FreeBSD__)) + // A local static initialized by calling path::imbue ensures that std::locale(""), + // which may throw, is called only if path_locale and condecvt_facet will actually + // be used. Thus misconfigured environmental variables will only cause an |