-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#6: Can't open affix or dictionary files for dictionary named "default".
Fixed.
- Loading branch information
Showing
6 changed files
with
41 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
/* | ||
* hunspell binary stub | ||
*/ | ||
|
||
$options = getopt('aDd::i:'); | ||
|
||
if (array_key_exists('D', $options)) { | ||
fprintf(STDERR, file_get_contents(__DIR__ . '/../dicts.txt')); | ||
exit(0); | ||
} | ||
|
||
if (array_key_exists('a', $options)) { | ||
$language = array_key_exists('d', $options) ? $options['d'] : false; | ||
if (!$language && !getenv('LANG')) { | ||
echo 'Can\'t open affix or dictionary files for dictionary named "default".' . PHP_EOL; | ||
exit(1); | ||
} | ||
echo file_get_contents(__DIR__ . '/../check.txt'); | ||
exit(0); | ||
} | ||
|
||
echo 'Invalid call' . PHP_EOL; | ||
exit(1); |
This file was deleted.
Oops, something went wrong.