Skip to content

Commit

Permalink
Force UTF8 for Hunspell as it seems it requires it
Browse files Browse the repository at this point in the history
  • Loading branch information
tigitz committed Jul 30, 2021
1 parent 940dcd0 commit 6aafca4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Spellchecker/Hunspell.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ public function check(
array $languages = [],
array $context = []
): iterable {
$cmd = $this->binaryPath->addArg('-a');
$cmd = $this->binaryPath->addArgs(['-i', 'UTF-8']);
$cmd = $cmd->addArg('-a');

if (!empty($languages)) {
$cmd = $cmd->addArgs(['-d', implode(',', $languages)]);
Expand Down

0 comments on commit 6aafca4

Please sign in to comment.