Commit e514b4a
The module-global screen_encoding stored a borrowed pointer to the
encoding owned by the window returned by the first initscr() call. That
window can be deallocated while unctrl() and ungetch(), which have no window
of their own, still use the pointer to encode non-ASCII characters.
Keep a private copy of the encoding instead.
(cherry picked from commit 551f8e1)
(cherry picked from commit 7b55e9a)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent b836d40 commit e514b4a
2 files changed
Lines changed: 41 additions & 5 deletions
File tree
- Misc/NEWS.d/next/Library
- Modules
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
182 | 186 | | |
183 | 187 | | |
184 | 188 | | |
| |||
3274 | 3278 | | |
3275 | 3279 | | |
3276 | 3280 | | |
| 3281 | + | |
| 3282 | + | |
| 3283 | + | |
| 3284 | + | |
| 3285 | + | |
| 3286 | + | |
| 3287 | + | |
| 3288 | + | |
| 3289 | + | |
| 3290 | + | |
| 3291 | + | |
| 3292 | + | |
| 3293 | + | |
| 3294 | + | |
| 3295 | + | |
3277 | 3296 | | |
3278 | 3297 | | |
3279 | 3298 | | |
| |||
3287 | 3306 | | |
3288 | 3307 | | |
3289 | 3308 | | |
3290 | | - | |
3291 | 3309 | | |
3292 | 3310 | | |
3293 | 3311 | | |
3294 | | - | |
| 3312 | + | |
| 3313 | + | |
| 3314 | + | |
| 3315 | + | |
| 3316 | + | |
| 3317 | + | |
| 3318 | + | |
| 3319 | + | |
| 3320 | + | |
3295 | 3321 | | |
3296 | 3322 | | |
3297 | 3323 | | |
| |||
3383 | 3409 | | |
3384 | 3410 | | |
3385 | 3411 | | |
3386 | | - | |
3387 | | - | |
3388 | | - | |
| 3412 | + | |
| 3413 | + | |
| 3414 | + | |
| 3415 | + | |
| 3416 | + | |
| 3417 | + | |
| 3418 | + | |
| 3419 | + | |
| 3420 | + | |
3389 | 3421 | | |
3390 | 3422 | | |
3391 | 3423 | | |
| |||
0 commit comments