Bug#395368: iprint: 'i' dumps any chars after decimal digits.

2007-02-03 Thread Jeroen van Wolffelaar
On Wed, Nov 01, 2006 at 06:36:48PM +0100, Thijs Kinkhorst wrote: If you choose to pass nonsensical data into the integer print utility there's no defined output, because you're using the program outside of its stated purpose. And in CS it's common practice then to give an error or warning... I

Bug#395368: iprint: 'i' dumps any chars after decimal digits.

2007-02-03 Thread A. Costa
On Sat, 3 Feb 2007 13:28:20 +0100 Jeroen van Wolffelaar [EMAIL PROTECTED] wrote: And in CS it's common practice then to give an error or warning... I don't see what your problem is with adding a warning to stderr in such cases. Just silently truncating at the point where you cannot find a

Bug#395368: iprint: 'i' dumps any chars after decimal digits.

2006-11-03 Thread A. Costa
reopen 395368 ! thanks It's a classic design disagreement, ...automobile safety belts... ...Jack Williamson's 'Humanoid' stories... I find these comparisons to be totally out of the scope of the issue we're discussing. Culture clash. Who's culture or what region's customs determines

Bug#395368: iprint: 'i' dumps any chars after decimal digits.

2006-11-02 Thread A. Costa
reopen 395368 ! thanks On Wed, 01 Nov 2006 18:36:48 +0100 Thijs Kinkhorst [EMAIL PROTECTED] wrote: I see no need to change anything here. The program does what it says it does... It's a classic design disagreement, an example favorable to my side would be the introduction of automobile

Bug#395368: iprint: 'i' dumps any chars after decimal digits.

2006-11-02 Thread Thijs Kinkhorst
severity 395368 wishlist tags 395368 wontfix close 395368 thanks It's a classic design disagreement, an example favorable to my side would be the introduction of automobile safety belts -- some automakers (and drivers) didn't want them, and destructively reasoned that a car doesn't drive

Bug#395368: iprint: 'i' dumps any chars after decimal digits.

2006-10-30 Thread Thijs Kinkhorst
On Thu, 2006-10-26 at 12:17 -0400, A. Costa wrote: Clear enough, but these seem less intuitive: % i 1234abc 1234 0x4D2 02322 0b10011010010 % i 1abc234 1 0x1 01 0b1 While I was looking in to this, I discovered that the manpage documents this behaviour: Otherwise, if an

Bug#395368: iprint: 'i' dumps any chars after decimal digits.

2006-10-30 Thread A. Costa
On Mon, 30 Oct 2006 18:02:16 +0100 Thijs Kinkhorst [EMAIL PROTECTED] wrote: % i 1abc234 1 0x1 01 0b1 While I was looking in to this, I discovered that the manpage documents this behaviour: Otherwise, if an argument begins with a digit, it is assumed to be a decimal number.

Bug#395368: iprint: 'i' dumps any chars after decimal digits.

2006-10-28 Thread Thijs Kinkhorst
A. Costa wrote: Parse the leading number prefixes to find the input data format. Then check the rest of the string, if it's not the right format, return an error. e.g.: i 1abc234 ; echo $? i: error '1abc234' is not a decimal number. 2 I prefer to just

Bug#395368: iprint: 'i' dumps any chars after decimal digits.

2006-10-26 Thread A. Costa
Package: iprint Version: 1.3-8 Severity: normal 'man i' says try arbitrary strings for demonstrative output: % i abc1234 97 0x61 0141 0b111 'a' 98 0x62 0142 0b1100010 'b' 99 0x63 0143 0b1100011 'c' 49 0x31 061 0b110001 '1' 50 0x32 062 0b110010 '2' 51 0x33 063