From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id 48AE81960009 for ; Tue, 23 Jun 2015 07:31:17 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 2FA75B5D94B for ; Tue, 23 Jun 2015 07:55:00 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (localhost.nagaokaut.ac.jp [127.0.0.1]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id F25A097A820 for ; Tue, 23 Jun 2015 07:55:00 +0900 (JST) X-Virus-Scanned: amavisd-new at nagaokaut.ac.jp Authentication-Results: funfun.nagaokaut.ac.jp (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=sendgrid.me Received: from funfun.nagaokaut.ac.jp ([127.0.0.1]) by funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 71bv2fIdb7la for ; Tue, 23 Jun 2015 07:55:00 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 98EE597A82C for ; Tue, 23 Jun 2015 07:55:00 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id CBBA4952439 for ; Tue, 23 Jun 2015 07:54:59 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 9DB7512043D; Tue, 23 Jun 2015 07:54:57 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o10.shared.sendgrid.net (o10.shared.sendgrid.net [173.193.132.135]) by neon.ruby-lang.org (Postfix) with ESMTPS id B737012041F for ; Tue, 23 Jun 2015 07:54:54 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=b5O1+b97jPfUiOeK1KUDKsFZSsg=; b=fCsiMUEec19Gn+sGSD +RTp4+FCCZP0zUXuhCYX5oGM7PX3fBZjwlRZs+neNZw3PRuTHJhH3svuCXNvHl5Y yTjwIHp8gCWluxxPRFLZxORt3768WLJ8AOKrW+PSFYuoBFtrnTPJMZdwyEBvFFRw 4z0zsgSv3eY7z//ONBX69qYtQ= Received: by filter0554p1mdw1.sendgrid.net with SMTP id filter0554p1mdw1.30147.55889239C 2015-06-22 22:54:49.894399219 +0000 UTC Received: from herokuapp.com (ec2-23-20-71-68.compute-1.amazonaws.com [23.20.71.68]) by ismtpd-049 (SG) with ESMTP id 14e1d7b3215.7031.2596ab for ; Mon, 22 Jun 2015 22:54:49 +0000 (UTC) Date: Mon, 22 Jun 2015 22:54:49 +0000 From: nobu@ruby-lang.org To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Redmine-MailingListIntegration-Message-Ids: 44267 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11293 X-Redmine-Issue-Author: mattdipasquale X-Redmine-Sender: nobu X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS5KVIwUQW9LfTZPC7lfZzQMp3Rk7XMkZy4Feb yMnQ+aEg46BqRw8NbPhuaJRfqUFhu36cBgeNDMPm1OXK+qwNCL/UVE5jKi8Yo+IGtXQkiDhuBzMTEy vhEe4zTx0LUzr0uJnSGPU9R1BAyuWwzQAkA0 X-ML-Name: ruby-core X-Mail-Count: 69706 Subject: [ruby-core:69706] [Ruby trunk - Bug #11293] [Rejected] Integer('0123') => 83 X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" 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/