Your message dated Sun, 25 Mar 2007 14:04:22 +0200 (CEST)
with message-id <[EMAIL PROTECTED]>
has caused the Debian Bug report #415596,
regarding "dialog --gauge" cannot display new prompt beginning with a number
to be marked as having been forwarded to the upstream software
author(s) Thomas Dickey <[EMAIL PROTECTED]>.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Hi. Received this from the debian BTS:

---------- Forwarded message ----------
From: Gabor Kiss <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED], [EMAIL PROTECTED]
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Date: Tue, 20 Mar 2007 17:21:37 +0100
Subject: Bug#415596: "dialog --gauge" cannot display new prompt beginning with 
a number

Package: dialog
Version: 1.0-20050306-1
Severity: normal

Manual writes:
        If the standard input reads the string "XXX", then
        subsequent lines up to another "XXX" are used
        for a new prompt.

Meanwile source file guage.c (sic! :-) contains this:
        if (isMarker(buf)) {
            /*
             * Historically, next line should be percentage, but one of the
             * worse-written clones of 'dialog' assumes the number is missing.
             * (Gresham's Law applied to software).
             */
            status = read_data(buf, dialog_state.pipe_input);
            if_FINISH(status, break);
            if_RESIZE(status, goto retry);

            prompt_buf[0] = '\0';
            if (decode_percent(buf))            <<--- WHY ??? :-(
                percent = atoi(buf);
            else
                strcpy(prompt_buf, buf);
....

So I cannot send a new prompt line "13200 files remaining" or so
because code interprets 13200 as percentage and messes up the
screen even if it is between "XXX" lines.

Version 1.0-20060221 also suffers from this problem.

Gabor

[...]

--- End Message ---

Reply via email to