Menu

#218 hunspell: hangs with -D option

open
nobody
None
5
2012-04-30
2012-04-30
No

Originally reported at http://bugs.debian.org/659281

hunspell -D does not return control to the console unless ^C is used.

This change has been proposed by Eli Zaretskii in emacs-devel mailing list

http://article.gmane.org/gmane.emacs.devel/149245

--- src/tools/hunspell.cxx~0 2011-01-21 19:01:29.000000000 +0200
+++ src/tools/hunspell.cxx 2012-03-21 16:40:31.255690500 +0200
@@ -1756,6 +1763,7 @@ int main(int argc, char** argv)
fprintf(stderr, gettext("SEARCH PATH:\n%s\n"), path);
fprintf(stderr, gettext("AVAILABLE DICTIONARIES (path is not mandatory for -d option):\n"));
search(path, NULL, NULL);
+ if (arg_files==-1) exit(0);
}

if (!privdicname) privdicname = mystrdup(getenv("WORDLIST"));

Discussion