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

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.19
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages dialog depends on:
ii  debianutils           2.8.4              Miscellaneous utilities specific t
ii  libc6                 2.3.2.ds1-22sarge5 GNU C Library: Shared libraries an
ii  libncursesw5          5.4-4              Shared libraries for terminal hand

-- no debconf information


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

Reply via email to