Ruby Issue Tracking System: Issueshttps://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112017-07-06T09:59:55ZRuby Issue Tracking System
Redmine Ruby master - Bug #13722 (Closed): OptionParser::DecimalInteger can be converted as Octalhttps://bugs.ruby-lang.org/issues/137222017-07-06T09:59:55Zwmccumstie (William McCumstie)
<p>OptionParser::DecimalInteger will convert in octal format for input values that start with a '0'. In the attached script, an input of '035' will be converted to 29.</p>
<p>Script Output:</p>
<pre><code>$: ./ruby-op-octal-bug.rb
Input: 035
Parsed: 29
</code></pre>