Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2014-01-14 22:15:58 +0400
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2014-01-14 23:01:26 +0400
commitd980c3eccbd020a9ff7137659e7cbfbc5adb125d (patch)
treea1df7c061ca6107d736087d4c5cea394d9e00a3b
parent6e8321f2c033367dc6a7d6ec305c2a27e0b62969 (diff)
Further fix for T37817: non-ascii paths fix in Cycles broke OSL rendering.
Not quite sure yet what is going on here, but this works for me.
-rw-r--r--intern/cycles/util/util_path.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/intern/cycles/util/util_path.cpp b/intern/cycles/util/util_path.cpp
index 9ee51f2dcfa..1a0bf88bbd1 100644
--- a/intern/cycles/util/util_path.cpp
+++ b/intern/cycles/util/util_path.cpp
@@ -42,19 +42,19 @@ static string cached_user_path = "";
static boost::filesystem::path to_boost(const string& path)
{
#ifdef _MSC_VER
- std::wstring path_utf16 = Strutil::utf8_to_utf16(path);
- return boost::filesystem::path(path_utf16);
+ std::wstring path_utf16 = Strutil::utf8_to_utf16(path.c_str());
+ return boost::filesystem::path(path_utf16.c_str());
#else
- return boost::filesystem::path(path);
+ return boost::filesystem::path(path.c_str());
#endif
}
static string from_boost(const boost::filesystem::path& path)
{
#ifdef _MSC_VER
- return Strutil::utf16_to_utf8(path.wstring());
+ return Strutil::utf16_to_utf8(path.wstring().c_str());
#else
- return path.string();
+ return path.string().c_str();
#endif
}