diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-05-07 16:42:51 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-05-07 16:42:51 (GMT) |
commit | 02a004ea1de27a456cc1471b4d13a9ba8a0c7ce6 (patch) | |
tree | 31bf3091cf49f26d4af876b50521c78ff83bbdaa /Modules/pwdmodule.c | |
parent | 97c18ab6a52774364511bb5e4bf0444af4e700b9 (diff) | |
download | cpython-02a004ea1de27a456cc1471b4d13a9ba8a0c7ce6.zip cpython-02a004ea1de27a456cc1471b4d13a9ba8a0c7ce6.tar.gz cpython-02a004ea1de27a456cc1471b4d13a9ba8a0c7ce6.tar.bz2 |
correct call
Diffstat (limited to 'Modules/pwdmodule.c')
-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 827fa43..6a6f0de 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 { |