summaryrefslogtreecommitdiffstats
path: root/Python/getargs.c
diff options
context:
space:
mode:
authorMark Hammond <mhammond@skippinet.com.au>2001-05-13 08:04:26 (GMT)
committerMark Hammond <mhammond@skippinet.com.au>2001-05-13 08:04:26 (GMT)
commitef8b654bbea15dc55767a7095e01dff7a3ca86cb (patch)
tree778653b95245ae2d31e5a5ed94c0c491e1687b15 /Python/getargs.c
parent342c65e19ac0cc47bf2b21026c76e63440b23748 (diff)
downloadcpython-ef8b654bbea15dc55767a7095e01dff7a3ca86cb.zip
cpython-ef8b654bbea15dc55767a7095e01dff7a3ca86cb.tar.gz
cpython-ef8b654bbea15dc55767a7095e01dff7a3ca86cb.tar.bz2
Add support for Windows using "mbcs" as the default Unicode encoding when dealing with the file system. As discussed on python-dev and in patch 410465.
Diffstat (limited to 'Python/getargs.c')
-rw-r--r--Python/getargs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/getargs.c b/Python/getargs.c
index 6eabd75..d78faa7 100644
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -698,7 +698,7 @@ convertsimple1(PyObject *arg, char **p_format, va_list *p_va)
's' (recode all objects via Unicode) or
't' (only recode non-string objects)
*/
- if (*format != 's')
+ if (*format == 's')
recode_strings = 1;
else if (*format == 't')
recode_strings = 0;