Created
January 17, 2020 09:29
-
-
Save tsuchm/9e6de15d2ab743326f29c61fbc6042ad to your computer and use it in GitHub Desktop.
Enforce to use bytes for MeCab even if Python3 is used
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/swig/MeCab.i | |
+++ b/swig/MeCab.i | |
@@ -3,6 +3,7 @@ | |
%{ | |
#include "mecab.h" | |
+#define SWIG_PYTHON_STRICT_BYTE_CHAR | |
/* Workaround for ruby1.9.x */ | |
#if defined SWIGRUBY | |
#include "ruby/version.h" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment