Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class String
- # correct length to non-ascii strings
- def length()
- self.split('').length
- end
- end
- # ERROR MESSAGE:
- /usr/lib/ruby/1.8/resolv.rb:1783:in `initialize': IPv4 address must be 4 bytes (ArgumentError)
- from /usr/lib/ruby/1.8/resolv.rb:1654:in `new'
- from /usr/lib/ruby/1.8/resolv.rb:1654:in `decode_rdata'
- from /usr/lib/ruby/1.8/resolv.rb:1403:in `get_rr'
- from /usr/lib/ruby/1.8/resolv.rb:1308:in `get_length16'
- from /usr/lib/ruby/1.8/resolv.rb:1403:in `get_rr'
- from /usr/lib/ruby/1.8/resolv.rb:1289:in `decode'
- from /usr/lib/ruby/1.8/resolv.rb:1288:in `each'
- from /usr/lib/ruby/1.8/resolv.rb:1288:in `decode'
- ... 20 levels...
- from /usr/lib/ruby/gems/1.8/gems/xmpp4r-simple-0.8.4/lib/xmpp4r-simple.rb:134:in `status'
- from /usr/lib/ruby/gems/1.8/gems/xmpp4r-simple-0.8.4/lib/xmpp4r-simple.rb:85:in `initialize'
- from ./raker.rb:204:in `new'
- from ./raker.rb:204
Add Comment
Please, Sign In to add comment