summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStéphane Wirtel <stephane@wirtel.be>2017-06-12 11:30:33 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2017-06-12 11:30:33 (GMT)
commit7d1017d9ed3285857e827635eda966da246dcd5f (patch)
tree68281c374948198979106ba76ca2c4e554480605
parentb459f7482612d340b88b62edc024628595ec6337 (diff)
downloadcpython-7d1017d9ed3285857e827635eda966da246dcd5f.zip
cpython-7d1017d9ed3285857e827635eda966da246dcd5f.tar.gz
cpython-7d1017d9ed3285857e827635eda966da246dcd5f.tar.bz2
bpo-30636: Add PYTHONCOERCECLOCALE to the help of the command line (GH-2125)
-rw-r--r--Modules/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/main.c b/Modules/main.c
index 438cb2c..6a7e1d3 100644
--- a/Modules/main.c
+++ b/Modules/main.c
@@ -106,6 +106,9 @@ static const char usage_6[] =
"PYTHONMALLOC: set the Python memory allocators and/or install debug hooks\n"
" on Python memory allocators. Use PYTHONMALLOC=debug to install debug\n"
" hooks.\n";
+static const char usage_7[] =
+"PYTHONCOERCECLOCALE: if this variable is set to 0, it disables the locale\n"
+"coercion behavior\n";
static int
usage(int exitcode, const wchar_t* program)
@@ -122,6 +125,7 @@ usage(int exitcode, const wchar_t* program)
fprintf(f, usage_4, (wint_t)DELIM);
fprintf(f, usage_5, (wint_t)DELIM, PYTHONHOMEHELP);
fputs(usage_6, f);
+ fputs(usage_7, f);
}
return exitcode;
}