summaryrefslogtreecommitdiff
path: root/Doc/includes/run-func.c
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/includes/run-func.c')
-rw-r--r--Doc/includes/run-func.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/includes/run-func.c b/Doc/includes/run-func.c
index 1c9860d7a8..986d670319 100644
--- a/Doc/includes/run-func.c
+++ b/Doc/includes/run-func.c
@@ -13,7 +13,7 @@ main(int argc, char *argv[])
}
Py_Initialize();
- pName = PyUnicode_FromString(argv[1]);
+ pName = PyUnicode_DecodeFSDefault(argv[1]);
/* Error checking of pName left out */
pModule = PyImport_Import(pName);