| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
A narrow build stores one byte per cell, so skip the multi-byte cases there, as already done for test_textbox_edit_wide. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
| Back | FazBrowse Home | New Git URL |
test_textbox_unicode and test_textbox_unicode_insert_mode (added by GH-152482) guarded only on _encodable(), so under a UTF-8 locale on a narrow build they fed multi-byte characters to do_command(), where addch() raises OverflowError: byte doesn't fit in chtype (a narrow build stores one byte per cell).
Skip the multi-byte cases on a narrow build, as already done for test_textbox_edit_wide in GH-152592.
Reproduced the failure (10 errors) and confirmed the fix on a narrow _curses build under a UTF-8 locale; no change on a wide build.