[mecab-users 360] mecab-0.98pre2の--enable-utf8-onlyにてコンパイルエラー

Back to archive index

松澤徹 anima****@gmail*****
2009年 5月 22日 (金) 16:39:24 JST


まつざわと申します。

mecab-0.98pre2を--enable-utf8-onlyにてconfigureすると
コンパイルエラーとなります。

以下diffです。対応願います。
--

*** mecab-0.98pre2.org/src/char_property.h      2009-04-19
00:03:04.000000000 +0900
--- mecab-0.98pre2/src/char_property.h  2009-05-22 15:58:40.000000000 +0900
***************
*** 57,64 ****
   inline CharInfo getCharInfo(const char *begin,
                               const char *end,
                               size_t *mblen) const {
- #ifndef MECAB_USE_UTF8_ONLY
     unsigned short int t = 0;
     switch (charset_) {
       case EUC_JP:  t = euc_to_ucs2(begin, end, mblen); break;
       case CP932:   t = cp932_to_ucs2(begin, end, mblen); break;
--- 57,64 ----
   inline CharInfo getCharInfo(const char *begin,
                               const char *end,
                               size_t *mblen) const {
     unsigned short int t = 0;
+ #ifndef MECAB_USE_UTF8_ONLY
     switch (charset_) {
       case EUC_JP:  t = euc_to_ucs2(begin, end, mblen); break;
       case CP932:   t = cp932_to_ucs2(begin, end, mblen); break;




mecab-users メーリングリストの案内
Back to archive index