summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2016-11-27 11:08:00 +0100
committerPacho Ramos <pacho@gentoo.org>2016-11-27 11:08:32 +0100
commitcef3d321ee72f7b3b32f05c2b73921588659749d (patch)
tree225ce7b05c41bdf0ff5065711d371edb42ad334c /app-text/enchant/files
parentdev-vcs/tig: Backport upstream patch (diff)
downloadgentoo-cef3d321ee72f7b3b32f05c2b73921588659749d.tar.gz
gentoo-cef3d321ee72f7b3b32f05c2b73921588659749d.tar.bz2
gentoo-cef3d321ee72f7b3b32f05c2b73921588659749d.zip
app-text/enchant: Fix hunspell 1.5 support (#600952 by Lars Wendler)
Package-Manager: portage-2.3.2
Diffstat (limited to 'app-text/enchant/files')
-rw-r--r--app-text/enchant/files/enchant-1.6.0-hunspell150_fix.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/app-text/enchant/files/enchant-1.6.0-hunspell150_fix.patch b/app-text/enchant/files/enchant-1.6.0-hunspell150_fix.patch
new file mode 100644
index 000000000000..bd40c81d3c03
--- /dev/null
+++ b/app-text/enchant/files/enchant-1.6.0-hunspell150_fix.patch
@@ -0,0 +1,12 @@
+diff -upr enchant-1.6.0.orig/src/myspell/myspell_checker.cpp enchant-1.6.0/src/myspell/myspell_checker.cpp
+--- enchant-1.6.0.orig/src/myspell/myspell_checker.cpp 2016-11-26 16:04:05.689051339 +0200
++++ enchant-1.6.0/src/myspell/myspell_checker.cpp 2016-11-26 16:05:11.380014568 +0200
+@@ -431,7 +431,7 @@ MySpellChecker::requestDictionary(const
+ if(myspell == NULL){
+ return false;
+ }
+- char *enc = myspell->get_dic_encoding();
++ const char *enc = myspell->get_dic_encoding();
+
+ m_translate_in = g_iconv_open(enc, "UTF-8");
+ m_translate_out = g_iconv_open("UTF-8", enc);