NKF.nkf("-e", "") segfaults

[email protected]$G$9!#e(B

http://homepage1.nifty.com/~tetsu/ruby/diary/0805.html#21 e$B$N$h$&e(B
e$B$K!"e(B-ee$B$,e(BSEGVe$B$7$^$9!#860x$O!“e(Bnkf-utf8/nkf.ce$B$Ne(Bnkf_encoding_tablee$B$He(B
encoding_name_to_id_tablee$B$Ge(Bnamee$B$NJ8;z%1!<%9$,0[$J$k$b$N$,$”$k$Ne(B
e$B$K!"e(Bnkf_enc_find_index()e$B$,e(Bstrcmp()e$B$G8!:w$7$F$$$k$?$a$G$9!#J8;z%1!<e(B
e$B%9$r$=$m$($k$+!“e(Bstrcasecmp()e$B$r;H$&$+$9$kI,MW$,$”$k$H;W$$$^$9!#e(B

[email protected]@%$G$9!#e(B

Nobuyoshi N. wrote:

[email protected]$G$9!#e(B

http://homepage1.nifty.com/~tetsu/ruby/diary/0805.html#21 e$B$N$h$&e(B
e$B$K!"e(B-ee$B$,e(BSEGVe$B$7$^$9!#860x$O!“e(Bnkf-utf8/nkf.ce$B$Ne(Bnkf_encoding_tablee$B$He(B
encoding_name_to_id_tablee$B$Ge(Bnamee$B$NJ8;z%1!<%9$,0[$J$k$b$N$,$”$k$Ne(B
e$B$K!"e(Bnkf_enc_find_index()e$B$,e(Bstrcmp()e$B$G8!:w$7$F$$$k$?$a$G$9!#J8;z%1!<e(B
e$B%9$r$=$m$($k$+!“e(Bstrcasecmp()e$B$r;H$&$+$9$kI,MW$,$”$k$H;W$$$^$9!#e(B

nkf_enc_find_index()
e$B$O30$+$i<u$1<h$C$?%(%s%3!<%G%#%s%0L>$NH=Dj$K$b;H$C$F$$$k$N$G!"e(B
e$B$3$A$i$r%1!<%9$rL5;k$7$FH=Dj$9$k$h$&$KJQ$($^$7$?!#e(B

e$B$^$?!“e(Bstrcasecmp()
e$B$G$O%m%1!<%k$K$h$C$FLdBj$,$”$k$=$&$J$N$G!"e(B
e$BFH<+$KH=Dj$9$k$h$&$K$7$^$7$?!#e(B

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs