diff options
Diffstat (limited to 'mail/thunderbird45/patches/patch-mozilla_extensions_spellcheck_hunspell_glue_mozHunspell.cpp')
-rw-r--r-- | mail/thunderbird45/patches/patch-mozilla_extensions_spellcheck_hunspell_glue_mozHunspell.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mail/thunderbird45/patches/patch-mozilla_extensions_spellcheck_hunspell_glue_mozHunspell.cpp b/mail/thunderbird45/patches/patch-mozilla_extensions_spellcheck_hunspell_glue_mozHunspell.cpp new file mode 100644 index 00000000000..e33536fbc9a --- /dev/null +++ b/mail/thunderbird45/patches/patch-mozilla_extensions_spellcheck_hunspell_glue_mozHunspell.cpp @@ -0,0 +1,19 @@ +$NetBSD: patch-mozilla_extensions_spellcheck_hunspell_glue_mozHunspell.cpp,v 1.1 2017/04/27 13:38:18 ryoon Exp $ + +--- mozilla/extensions/spellcheck/hunspell/glue/mozHunspell.cpp.orig 2016-04-07 21:33:34.000000000 +0000 ++++ mozilla/extensions/spellcheck/hunspell/glue/mozHunspell.cpp +@@ -358,6 +358,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, |