Commit: 114284b1fbec7c01092ade3ade2bae5464c7f7ac
Author: Martijn Berger
Date:   Fri Dec 27 22:38:46 2013 +0100
https://developer.blender.org/rB114284b1fbec7c01092ade3ade2bae5464c7f7ac

creation of path from std::string on Windows (VC10/11/12) crashes (access error)

Summary:
Seems to be a known problem in boost: 
https://svn.boost.org/trac/boost/ticket/6320

Applied the solution but do not know if this is the right place.

Reviewers: dingto, brecht

Reviewed By: dingto

Differential Revision: https://developer.blender.org/D140

===================================================================

M       intern/cycles/util/util_path.cpp

===================================================================

diff --git a/intern/cycles/util/util_path.cpp b/intern/cycles/util/util_path.cpp
index e1f016b..7777e26 100644
--- a/intern/cycles/util/util_path.cpp
+++ b/intern/cycles/util/util_path.cpp
@@ -42,6 +42,11 @@ void path_init(const string& path, const string& user_path)
 {
        cached_path = path;
        cached_user_path = user_path;
+
+#ifdef _MSC_VER
+       // fix for https://svn.boost.org/trac/boost/ticket/6320
+    boost::filesystem::path::imbue( std::locale( "" ) );
+#endif
 }
 
 string path_get(const string& sub)

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to