svn commit: r427132 - head/textproc/enchant/files
Jan Beich
jbeich at FreeBSD.org
Sat Nov 26 08:09:45 UTC 2016
Author: jbeich
Date: Sat Nov 26 08:09:43 2016
New Revision: 427132
URL: https://svnweb.freebsd.org/changeset/ports/427132
Log:
textproc/enchant: unbreak with hunspell 1.5
myspell_checker.cpp:430:8: error: cannot initialize a variable of type 'char *' with an rvalue of
type 'const char *'
char *enc = myspell->get_dic_encoding();
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
https://github.com/hunspell/hunspell/commit/971f8a9cf52e
PR: 214837
Approved by: portmgr blanket
Added:
head/textproc/enchant/files/patch-src_myspell_myspell__checker.cpp (contents, props changed)
Added: head/textproc/enchant/files/patch-src_myspell_myspell__checker.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/enchant/files/patch-src_myspell_myspell__checker.cpp Sat Nov 26 08:09:43 2016 (r427132)
@@ -0,0 +1,11 @@
+--- src/myspell/myspell_checker.cpp.orig 2010-04-01 20:53:37 UTC
++++ src/myspell/myspell_checker.cpp
+@@ -427,7 +427,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);
More information about the svn-ports-head
mailing list