Files
pkgsrc-ng/www/firefox/patches/patch-extensions_spellcheck_hunspell_glue_mozHunspell.cpp
2016-11-18 22:39:22 +01:00

22 lines
788 B
C++

$NetBSD: patch-extensions_spellcheck_hunspell_glue_mozHunspell.cpp,v 1.2 2016/06/16 12:08:21 ryoon Exp $
* Read pkgsrc hunspell dictionaries
--- extensions/spellcheck/hunspell/glue/mozHunspell.cpp.orig 2015-12-04 00:37:13.000000000 +0000
+++ extensions/spellcheck/hunspell/glue/mozHunspell.cpp
@@ -392,6 +392,14 @@ mozHunspell::LoadDictionaryList(bool aNo
}
}
+ // load system hunspell dictionaries
+ nsCOMPtr<nsIFile> hunDir;
+ NS_NewNativeLocalFile(NS_LITERAL_CSTRING("@PREFIX@/share/hunspell"),
+ true, getter_AddRefs(hunDir));
+ if (hunDir) {
+ LoadDictionariesFromDir(hunDir);
+ }
+
// find dictionaries from extensions requiring restart
nsCOMPtr<nsISimpleEnumerator> dictDirs;
rv = dirSvc->Get(DICTIONARY_SEARCH_DIRECTORY_LIST,