Package: iprint
Version: 1.3-8
Severity: normal

'man i' says try arbitrary strings for demonstrative output:

    % i abc1234
    97 0x61 0141 0b1100001 'a'
    98 0x62 0142 0b1100010 'b'
    99 0x63 0143 0b1100011 'c'
    49 0x31 061 0b110001 '1'
    50 0x32 062 0b110010 '2'
    51 0x33 063 0b110011 '3'
    52 0x34 064 0b110100 '4'

Clear enough, but these seem less intuitive:

    % i 1234abc
    1234 0x4D2 02322 0b10011010010
    % i 1abc234
    1 0x1 01 0b1

The man page doesn't mention dropped chars, and most programs don't lose
or ignore data without telling the user or giving an error.

Suggested fix:

    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

Hope this helps...





-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.16-2-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)

Versions of packages iprint depends on:
ii  libc6                        2.3.6.ds1-6 GNU C Library: Shared libraries

iprint recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to