"\xEF\xB8\x80".encode("EUC-JP", "UTF-8") dumps core

e$B0J2<$N$h$&$K$9$k$He(B SEGV e$B$7$^$9!#e(B

% ./ruby -e ‘"\xEF\xB8\x80".encode(“EUC-JP”, “UTF-8”)’
-e:1: [BUG] Segmentation fault
ruby 1.9.0 (2008-08-01 revision 18300) [i686-linux]

– control frame ----------
c:0004 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC :encode
c:0003 p:0012 s:0006 b:0006 l:000005 d:000005 TOP -e:1
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
:private_class_method
c:0001 p:0000 s:0002 b:0002 l:000001 d:000001 TOP :17

DBG> : “-e:1:in encode'" DBG> : "-e:1:in'”
– backtrace of native function call (Use addr2line) –
0x81173ab
0x813cad1
0x813cb09
0x80d76db
0xb7f6b440
0x80fa3b3
0x80fa64e
0x80fa7b0
0x810a076
0x8114820
0x8114373
0x8110a2c
0x8114a23
0x8115071
0x805a448
0x805a4eb
0x8058ec8
0xb7dcbea8
0x8058dd1

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