Package: ccze
Version: 0.2.1-1.2
Severity: wishlist

ccze detects 42 and -42 as numbers, but does not do so for +42. I just
noticed as newest smartd (smartmontools) reports temperature changes as
Device: /dev/sda, Temperature changed +2 Celsius to 31 Celsius (Min/Max 29/31!)
while older ones just would print increases without sign.

Line 294 of ccze-wordcolor.c seems to be in charge of numbers
reg_num = pcre_compile ("^-?\\d+$", 0, &error, &errptr, NULL);
so maybe it would work if modified slightly to
reg_num = pcre_compile ("^[-+]?\\d+$", 0, &error, &errptr, NULL);

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-1-k7
Locale: LANG=en_GB.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)

Versions of packages ccze depends on:
ii  libc6                       2.3.6.ds1-13 GNU C Library: Shared libraries
ii  libncurses5                 5.5-5        Shared libraries for terminal hand
ii  libpcre3                    6.7-1        Perl 5 Compatible Regular Expressi

ccze 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