diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-05-07 16:42:51 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-05-07 16:42:51 +0000 |
commit | 02a004ea1de27a456cc1471b4d13a9ba8a0c7ce6 (patch) | |
tree | 31bf3091cf49f26d4af876b50521c78ff83bbdaa /Modules | |
parent | 97c18ab6a52774364511bb5e4bf0444af4e700b9 (diff) | |
download | cpython-git-02a004ea1de27a456cc1471b4d13a9ba8a0c7ce6.tar.gz |
correct call
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/pwdmodule.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Modules/pwdmodule.c b/Modules/pwdmodule.c index 827fa43d54..6a6f0ded96 100644 --- a/Modules/pwdmodule.c +++ b/Modules/pwdmodule.c @@ -49,9 +49,7 @@ static void sets(PyObject *v, int i, const char* val) { if (val) { - PyObject *o = PyUnicode_DecodeFSDefault(val, strlen(val), - Py_FileSystemDefaultEncoding, - "surrogateescape"); + PyObject *o = PyUnicode_DecodeFSDefault(val); PyStructSequence_SET_ITEM(v, i, o); } else { |