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-11 03:47:58 +0400
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2014-01-11 03:47:58 +0400
commit241fccaf6a113963598e5ad040e7e72c857bea00 (patch)
treefe4072418d5aefcb302350c59140783c4fe5db41 /intern/cycles/util/util_md5.cpp
parent9e1ca2858920f059c957401160d0a9b75b6ff2bf (diff)
Fix T37817: cycles CUDA detection problem on Windows with non-ascii paths.
Diffstat (limited to 'intern/cycles/util/util_md5.cpp')
-rw-r--r--intern/cycles/util/util_md5.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/cycles/util/util_md5.cpp b/intern/cycles/util/util_md5.cpp
index 9dcd69cec99..c53fbd90c67 100644
--- a/intern/cycles/util/util_md5.cpp
+++ b/intern/cycles/util/util_md5.cpp
@@ -24,6 +24,7 @@
/* Minor modifications done to remove some code and change style. */
#include "util_md5.h"
+#include "util_path.h"
#include <string.h>
#include <stdio.h>
@@ -311,7 +312,7 @@ void MD5Hash::append(const uint8_t *data, int nbytes)
bool MD5Hash::append_file(const string& filepath)
{
- FILE *f = fopen(filepath.c_str(), "rb");
+ FILE *f = path_fopen(filepath, "rb");
if(!f) {
fprintf(stderr, "MD5: failed to open file %s\n", filepath.c_str());