Fixed scripts to use LC_ALL=C. This was necessary especially for de.sh as the tr invocation had invalid bytes. Similar requirement was in getwords.sh. But since I changed the one I decided to change the others too. I note that both before and after the fix the alternative languages do not work under macOS or fedora linux. I don't know if this is the wrong locale (the author does suggest UTF-8) or the dictionary or something else but I noted it anyway. I added this latter problem to bugs.md. Whilst at it I added some notes and fixes to bugs.md.
13 lines
293 B
Bash
Executable File
13 lines
293 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if [[ "$#" -ne 1 ]]; then
|
|
echo "Usage: $0 <language code>"
|
|
echo "Run (aspell dump dicts) to see the available codes."
|
|
exit 2
|
|
fi
|
|
|
|
LC_ALL=C aspell --lang="$1" dump master \
|
|
| LC_ALL=C aspell --lang="$1" expand \
|
|
| LC_ALL=C tr ' ' '\n' \
|
|
| LC_ALL=C sort -u
|