| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
… a wide build (pythonGH-153863) On a wide build, winch() returns the low 8 bits of the character's code point with no locale conversion, so inch()/mvinch() disagreed with instr() for a non-ASCII character of an 8-bit locale ('€' under ISO-8859-15 gave 0xAC instead of 0xA4). Re-encode the cell to its locale byte via wctob(), as ncurses does for getbkgd(). (cherry picked from commit a83aaa9) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Documentation build overview304 files changed · + 1 added · ± 299 modified · - 4 deleted + Added ± Modified
- Deleted |
Sorry, something went wrong.
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
Sorry, something went wrong.
|
Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.14 due to a conflict. cherry_picker 7d1b64bd9a07deb4ce20e0f3d1b07b0507c51431 3.14 |
Sorry, something went wrong.
|
Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.13 due to a conflict. cherry_picker 7d1b64bd9a07deb4ce20e0f3d1b07b0507c51431 3.13 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Manual backport of #153863.
3.15 predates the 3.16 complexchar refactor, so the fix inlines getcchar() into a small helper instead of the curses_getcchar wrapper; the logic (recover the locale byte via wctob()) is unchanged.
Verified on a wide (HAVE_NCURSESW) build: test_curses passes, including test_read_from_window under ISO-8859-15 where € (0xA4) exercises the fix.