Bug #997: % after %> in erb
http://redmine.ruby-lang.org/issues/show/997
e$B5/I<<Te(B: Yusuke E.
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
e$BC4Ev<Te(B: Masatoshi Seki, e$B%+%F%4%je(B: lib, Target version: 1.9.1
RC2
Reproducible Version: trunk
e$B1sF#$G$9!#e(B
e$B:G6a$K$J$C$Fe(B 1.9 e$B$Ne(B erb
e$B$N5sF0$,JQ$o$C$F5$$,$D$$$?$N$G$9$,!"e(B
e$B9TF,$Ne(B % e$B$rM-8z$K$7$?>l9g$N5sF0$,>/$7JQ$o$C$F$$$^$9!#e(B
$ ruby -rerb -ve ‘p ERB.new(“<%= 1 %>%”, nil, “%”).result’
ruby 1.8.5 (2006-08-25) [i486-linux]
“1%”
$ ruby18 -rerb -ve ‘p ERB.new(“<%= 1 %>%”, nil, “%”).result’
ruby 1.8.7 (2009-01-09 revision 21407) [i686-linux]
“1”
$ ruby19 -rerb -ve ‘p ERB.new(“<%= 1 %>%”, nil, “%”).result’
ruby 1.9.1 (2009-01-10 patchlevel-5000 trunk 21414) [i686-linux]
ruby19: warning: encoding ‘UTF-8’ is ignored, valid only in the first
line except for shebang line.
ruby19: warning: encoding ‘Big5’ is ignored, valid only in the first
line except for shebang line.
“1”
e$B$I$&$be(B %>
e$B$ND>8e$,9TF,07$$$K$J$C$F$$$k$h$&$J5$$,$9$k$N$G$9$,!“e(B
e$B$3$l$O0U?^$7$?;EMMJQ99$G$7$g$&$+!#e(B
e$B$H$j$”$($:%P%0$H$7$FJs9p$7$F$*$-$^$9!#e(B
–
Yusuke ENDOH [email protected]