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

Back to archive index

Taku Kudo taku****@chase*****
2009年 5月 22日 (金) 17:53:09 JST


工藤です

ご報告ありがとうございます。


2009/05/22 16:39 松澤徹 <anima****@gmail*****>:
> まつざわと申します。
>
> 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 mailing list
> mecab****@lists*****
> http://lists.sourceforge.jp/mailman/listinfo/mecab-users
>




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