summaryrefslogtreecommitdiff
path: root/Python/dynload_win.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-11-22 02:27:30 +0100
committerVictor Stinner <victor.stinner@haypocalc.com>2011-11-22 02:27:30 +0100
commit05407577effc3f36d9b63c12b8e754eb86e8e3f6 (patch)
treee9a12684808169de00a2f385b750117ff72fa88d /Python/dynload_win.c
parentd1bc252166f9ed44c6148cd2d5801f069fce4f6c (diff)
downloadcpython-05407577effc3f36d9b63c12b8e754eb86e8e3f6.tar.gz
Use the new Unicode API
* Replace PyUnicode_FromUnicode(NULL, 0) by PyUnicode_New(0, 0) * Replce PyUnicode_FromUnicode(str, len) by PyUnicode_FromWideChar(str, len) * Replace Py_UNICODE by wchar_t * posix_putenv() uses PyUnicode_FromFormat() to create the string, instead of PyUnicode_FromUnicode() + _snwprintf()
Diffstat (limited to 'Python/dynload_win.c')
-rw-r--r--Python/dynload_win.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/dynload_win.c b/Python/dynload_win.c
index e511098d1d..2cbfe9f30d 100644
--- a/Python/dynload_win.c
+++ b/Python/dynload_win.c
@@ -249,7 +249,7 @@ dl_funcptr _PyImport_GetDynLoadWindows(const char *shortname,
"DLL load failed: ");
PyUnicode_AppendAndDel(&message,
- PyUnicode_FromUnicode(
+ PyUnicode_FromWideChar(
theInfo,
theLength));
}