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:
authorCampbell Barton <ideasman42@gmail.com>2011-03-08 04:23:42 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-08 04:23:42 +0300
commite713d76f0e16d379d5993ba6439fef8ba7949783 (patch)
tree52e3309fc8d676f138b34bae406ee8241db4ac17 /source/blender/python
parentefb5f6008f64d26f080277976181feb93d23db30 (diff)
patch [#26404] UnicodeDecodeError
from user: perfection cat (sindra1961)
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/intern/bpy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy.c b/source/blender/python/intern/bpy.c
index 589da5b3cb7..3c3c2be7798 100644
--- a/source/blender/python/intern/bpy.c
+++ b/source/blender/python/intern/bpy.c
@@ -163,7 +163,7 @@ static PyObject *bpy_user_resource(PyObject *UNUSED(self), PyObject *args, PyObj
if (!path)
path = BLI_get_user_folder_notest(folder_id, subdir);
- return PyUnicode_FromString(path ? path : "");
+ return PyUnicode_DecodeFSDefault(path ? path : "");
}
static PyMethodDef meth_bpy_script_paths = {"script_paths", (PyCFunction)bpy_script_paths, METH_NOARGS, bpy_script_paths_doc};