diff options
author | jbeich <jbeich@FreeBSD.org> | 2016-11-26 16:09:43 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2016-11-26 16:09:43 +0800 |
commit | 7e6080cb632da4793ddbd4f4c4feae20d8fe5d1c (patch) | |
tree | ab438d20de022be51b8ed89219c908c9fb143dee /textproc | |
parent | fac7fd3e1fd66e82d96abd4ffe488cfe9f52fd30 (diff) | |
download | freebsd-ports-graphics-7e6080cb632da4793ddbd4f4c4feae20d8fe5d1c.tar.gz freebsd-ports-graphics-7e6080cb632da4793ddbd4f4c4feae20d8fe5d1c.tar.zst freebsd-ports-graphics-7e6080cb632da4793ddbd4f4c4feae20d8fe5d1c.zip |
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
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/enchant/files/patch-src_myspell_myspell__checker.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/textproc/enchant/files/patch-src_myspell_myspell__checker.cpp b/textproc/enchant/files/patch-src_myspell_myspell__checker.cpp new file mode 100644 index 00000000000..e761637ee33 --- /dev/null +++ b/textproc/enchant/files/patch-src_myspell_myspell__checker.cpp @@ -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); |