Skip to content

Set fallback encoding to Latin1 as the special case are likely single byte encoding rather than UTF-x - #1027

Merged
Murmele merged 3 commits into
Murmele:masterfrom
AHSauge:fix/spellcheck-encoding
Sep 29, 2026
Merged

Murmele merged 3 commits into
Murmele:masterfrom
AHSauge:fix/spellcheck-encoding

Conversation

@AHSauge

@AHSauge AHSauge commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator

This has been laying around for a bit, and built upon #991 including a regression test for a bug fixed in the PR

Essentially, some dictionary files use an encoding that's not detected by the current code. This results in the spell checker failing to correctly parse word containing single byte characters that are not UTF-8 compatible (so essentially has a byte value of 0x80 or higher). One example is shown with the German dictionary

Before the fix we get a red underline for a correctly spelled word
image

After the fix, it's recognised and we see that non-German words still get a red line under it.
image

@Murmele
Murmele merged commit 0d6fcf1 into Murmele:master Sep 29, 2026
9 checks passed
@AHSauge
AHSauge deleted the fix/spellcheck-encoding branch September 29, 2026 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants