Project

General

Profile

Bug #13722

Updated by nobu (Nobuyoshi Nakada) almost 3 years ago

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. 

 Script Output: 

 ``` 
 $: ./ruby-op-octal-bug.rb  
 Input: 035 
 Parsed: 29 
 ```

Back