Commit bc76d98
committed
gh-46927: Prevent readline from overriding environment
Readline library will set the LINES and COLUMNS environment variables
during initialization. One might expect these variables to be updated
later on SIGWINCH, but this is not the case with cpython.
As a consequence, when the readline module is imported, any process
launched from cpython with the default environment will have LINES and
COLUMNS variables set, potentially to a wrong value.
Use the rl_change_environment global variable to disable this initial
setup of the environment variables.1 parent 8679c8d commit bc76d98
File tree
2 files changed
+9
-0
lines changed- Misc/NEWS.d/next/Core_and_Builtins
- Modules
2 files changed
+9
-0
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1323 | 1323 | | |
1324 | 1324 | | |
1325 | 1325 | | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
1326 | 1333 | | |
1327 | 1334 | | |
1328 | 1335 | | |
| |||
0 commit comments