Commit 6f1df9a
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 3dfed23 commit 6f1df9a
1 file changed
Lines changed: 7 additions & 0 deletions
| 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