You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: handle UTF-8-SIG in convert_to_utf8, add status_changed on error
- Extend the early-return guard to include 'utf8sig' so chardet's
UTF-8-SIG label (BOM files) is treated as already UTF-8.
- Emit status_changed("Error converting file") in the except block,
consistent with save_file and load_file error paths.
- Remove redundant inline TextDocument imports from TestConvertToUtf8
(import already exists at module level).
- Upgrade test_no_op_when_no_document and test_no_op_when_already_utf8
to assert the expected status_changed message is emitted.
- Add test_no_op_when_utf8_with_bom to cover the UTF-8-SIG guard.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments