[Bug #2954] wrong result of nkf with --numchar-input

Bug #2954: wrong result of nkf with --numchar-input
http://redmine.ruby-lang.org/issues/show/2954

e$B5/I<<Te(B: Nobuyoshi N.
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
e$BC4Ev<Te(B: Yui NARUSE, e$B%+%F%4%je(B: ext, Target version: 1.9.x
ruby -v: 1.9.2dev (2010-03-13 trunk 26898)

Bug #2953e$B$N%3!<%I$re(B1.9e$B$G<B9T$9$k$H6u$K$J$j$^$9!#e(B

$ ./ruby bug-2953.rb | od -tx1z
0000000 22 22 0a 0a >""…<
0000004

nkf_buf_t->ptre$B$Oe(Bnkf_chare$B$NG[Ns$G$9$,!"e(Bnkf_buf_pop()e$B$Oe(Bunsigned
chare$B$K$J$C$F$k$?$a$K:G2<0L%P%$%H0J30$O<N$F$i$l$F$7$^$$$^$9!#e(B

e$B$3$l$re(Bnkf_chare$B$rJV$9$h$&$K$7$F$b!“e(B”\xe2\xa0\xae\x9f"e$B$H$$$&$*$+$7e(B
e$B$J7k2L$K$J$j$^$9!#e(Bstd_getc()e$B$Ge(Bnkf_buf_pop()e$B$He(Bgetc()e$B$,F1Ns$K$J$Ce(B
e$B$F$$$k$"$?$j$,LdBj$N$h$&$J5$$,$7$^$9!#e(B

e$B%A%1%C%He(B #2954 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

This issue was solved with changeset r26935.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


http://redmine.ruby-lang.org/issues/show/2954

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