Project

General

Profile

Actions

Bug #6192

closed

Integer() doesn't handle UTF-16 input

Added by john_firebaugh (John Firebaugh) about 12 years ago. Updated about 12 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin11.3.0]
Backport:
[ruby-core:43566]

Description

Integer("2007".encode("UTF-16le"))
ArgumentError: string contains null byte
from (irb):209:in Integer' from (irb):209 from /Users/john/.rvm/rubies/ruby-1.9.3-p125/bin/irb:16:in '

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0