[#69616] [Ruby trunk - Feature #11258] add 'x' mode character for O_EXCL — cremno@...
Issue #11258 has been updated by cremno phobia.
3 messages
2015/06/16
[#69643] [Ruby trunk - Misc #11276] [RFC] compile.c: convert to use ccan/list — normalperson@...
Issue #11276 has been updated by Eric Wong.
3 messages
2015/06/17
[#69751] [Ruby trunk - Bug #11001] 2.2.1 Segmentation fault in reserve_stack() function. — kubo@...
Issue #11001 has been updated by Takehiro Kubo.
3 messages
2015/06/27
[ruby-core:69700] [Ruby trunk - Bug #11293] Integer('0123') => 83
From:
merch-redmine@...
Date:
2015-06-22 15:20:45 UTC
List:
ruby-core #69700
Issue #11293 has been updated by Jeremy Evans.
Matt Di Pasquale wrote:
> Is this the correct behavior?
>
> irb(main):001:0> Integer('0123')
> => 83
>
> Shouldn't the return value be `123`?
No, 83 would be the expected result, just as if you specified 0123 in ruby code. Kernel#Integer treats a leading 0 to mean octal, leading 0x to mean hexidecimal, and leading 0b to mean binary, just as ruby itself does.
----------------------------------------
Bug #11293: Integer('0123') => 83
https://bugs.ruby-lang.org/issues/11293#change-53078
* Author: Matt Di Pasquale
* Status: Open
* 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/