summaryrefslogtreecommitdiffstats
path: root/Modules/pwdmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-05-07 16:34:53 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-05-07 16:34:53 (GMT)
commit97c18ab6a52774364511bb5e4bf0444af4e700b9 (patch)
tree5e14ba30e2d38f4813d027b4a391460d8fdfcc85 /Modules/pwdmodule.c
parent56fdb7545363c5b1e2987b08fa9b271dd289ce66 (diff)
downloadcpython-97c18ab6a52774364511bb5e4bf0444af4e700b9.zip
cpython-97c18ab6a52774364511bb5e4bf0444af4e700b9.tar.gz
cpython-97c18ab6a52774364511bb5e4bf0444af4e700b9.tar.bz2
Replace PyUnicode_Decode(buf, strlen(buf), Py_FileSystemDefaultEncoding,
"surrogateescape") by PyUnicode_DecodeFSDefault(val).
Diffstat (limited to 'Modules/pwdmodule.c')
-rw-r--r--Modules/pwdmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/pwdmodule.c b/Modules/pwdmodule.c
index 1547cdf..827fa43 100644
--- a/Modules/pwdmodule.c
+++ b/Modules/pwdmodule.c
@@ -49,7 +49,7 @@ static void
sets(PyObject *v, int i, const char* val)
{
if (val) {
- PyObject *o = PyUnicode_Decode(val, strlen(val),
+ PyObject *o = PyUnicode_DecodeFSDefault(val, strlen(val),
Py_FileSystemDefaultEncoding,
"surrogateescape");
PyStructSequence_SET_ITEM(v, i, o);