On 18 Nov 2012, at 17:40, Michael Monnerie <[email protected]> wrote:
> Nothing should have problems with leading zeroes. Sometimes reality intrudes on ideals. There is legacy software out there which will not behave the way you expect. Sometimes a digit string which begins with a leading zero will be treated as a sequence of digits in octal rather than decimal. [Yes, and a string which starts "0x" is considered to be in hex.] I think this quirk is buried deep in the library code for scanf() and its friends. You were just lucky that the whois client you chose for your example did The Right Thing. For your definition of The Right Thing.
