]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-30636: Add PYTHONCOERCECLOCALE to the help of the command line (GH-2125)
authorStéphane Wirtel <stephane@wirtel.be>
Mon, 12 Jun 2017 11:30:33 +0000 (13:30 +0200)
committerNick Coghlan <ncoghlan@gmail.com>
Mon, 12 Jun 2017 11:30:33 +0000 (21:30 +1000)
Modules/main.c

index 438cb2c63c90d87356ae7f8425f09170c07301a8..6a7e1d3b1f4fa33baaa00045290c0524f4b0d469 100644 (file)
@@ -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;
 }