| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
unget_wch() can push only a single-byte character on a narrow build, so skip the multi-byte cases there. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
| Back | FazBrowse Home | New Git URL |
test_textbox_edit_wide is the only textbox test that feeds characters through curses.unget_wch(). On a narrow build (no wide-character support) unget_wch() can only push a character that encodes to a single byte, so under a UTF-8 locale a non-ASCII character such as 'é' raises OverflowError. This was failing on the macOS buildbots, which link the system narrow curses.
Skip the multi-byte cases on a narrow build, the same way the existing 8-bit textbox tests do.