ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: nobu@ruby-lang.org
To: ruby-core@ruby-lang.org
Subject: [ruby-core:69706] [Ruby trunk - Bug #11293] [Rejected] Integer('0123') => 83
Date: Mon, 22 Jun 2015 22:54:49 +0000	[thread overview]
Message-ID: <redmine.journal-53083.20150622225448.2877c6f3007bd42d@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-11293.20150622150243@ruby-lang.org

Issue #11293 has been updated by Nobuyoshi Nakada.

Status changed from Open to Rejected

Try `Integer('0123', 10)`.

----------------------------------------
Bug #11293: Integer('0123') => 83
https://bugs.ruby-lang.org/issues/11293#change-53083

* Author: Matt Di Pasquale
* Status: Rejected
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
Is this the correct behavior?

    irb(main):001:0> Integer('0123')
    => 83

Shouldn't the return value be `123`?



-- 
https://bugs.ruby-lang.org/

  parent reply	other threads:[~2015-06-22 22:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <redmine.issue-11293.20150622150243@ruby-lang.org>
2015-06-22 15:02 ` [ruby-core:69699] [Ruby trunk - Bug #11293] [Open] Integer('0123') => 83 liveloveprosper
2015-06-22 15:20 ` [ruby-core:69700] [Ruby trunk - Bug #11293] " merch-redmine
2015-06-22 22:54 ` nobu [this message]
2017-01-28 16:47 ` [ruby-core:79295] [Ruby trunk Bug#11293] " liveloveprosper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.journal-53083.20150622225448.2877c6f3007bd42d@ruby-lang.org \
    --to=ruby-core@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).