10000 bpo-30636: Add PYTHONCOERCECLOCALE to the help of the command line (G… · python/cpython@7d1017d · GitHub
[go: up one dir, main page]

Skip to content

Commit 7d1017d

Browse files
matrixisencoghlan
authored andcommitted
bpo-30636: Add PYTHONCOERCECLOCALE to the help of the command line (GH-2125)
1 parent b459f74 commit 7d1017d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Modules/main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ static const char usage_6[] =
106106
"PYTHONMALLOC: set the Python memory allocators and/or install debug hooks\n"
107107
" on Python memory allocators. Use PYTHONMALLOC=debug to install debug\n"
108108
" hooks.\n";
109+
static const char usage_7[] =
110+
"PYTHONCOERCECLOCALE: if this variable is set to 0, it disables the locale\n"
111+
"coercion behavior\n";
109112

110113
static int
111114
usage(int exitcode, const wchar_t* program)
@@ -122,6 +125,7 @@ usage(int exitcode, const wchar_t* program)
122125
fprintf(f, usage_4, (wint_t)DELIM);
123126
fprintf(f, usage_5, (wint_t)DELIM, PYTHONHOMEHELP);
124127
fputs(usage_6, f);
128+
fputs(usage_7, f);
125129
}
126130
return exitcode;
127131
}

0 commit comments

Comments
 (0)
0