Bug 128402 - dialog-0.9b-20040606 has broken radiolists
Summary: dialog-0.9b-20040606 has broken radiolists
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: dialog
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-07-22 15:57 UTC by Steve Grubb
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version: dialog-1.0.20040728-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-07-29 15:34:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Steve Grubb 2004-07-22 15:57:57 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.4.2)
Gecko/20040308

Description of problem:
dialog-0.9b-20040606 has a bug that breaks radiolists. If you run the
sample application, radiolist, and choose Apple the output is:

'"Apple"'  in older versions it is:

'Apple'

The quote mess things up. Here's the patch to fix it:

diff -u dialog-0.9b-20040606.orig/checklist.c
dialog-0.9b-20040606/checklist.c
--- dialog-0.9b-20040606.orig/checklist.c       2004-06-05
20:42:41.000000000 -0400
+++ dialog-0.9b-20040606/checklist.c    2004-07-22 11:11:53.000000000
-0400
@@ -535,7 +535,7 @@
                } else {
                    if (*(dialog_vars.input_result))
                        dlg_add_result(" ");
-                   if (FLAG_CHECK) {
+                   if (flag == FLAG_CHECK) {
                        dlg_add_quoted(ItemName(i));
                    } else {
                        dlg_add_result(ItemName(i));

As you can see, there is an 'if' statement of a constant rather than a
variable. Please apply.

Version-Release number of selected component (if applicable):
dialog-0.9b-20040606

How reproducible:
Always

Steps to Reproduce:
1. /usr/share/doc/dialog-0.9b.20040606/samples/radiolist
2. Select Apple
3. Hit Enter
4. View results
    

Actual Results:  '"Apple"' chosen.

Expected Results:  'Apple' chosen.

Additional info:

Comment 1 Harald Hoyer 2004-07-29 15:34:05 UTC
fixed with dialog-1.0.20040728-1


Note You need to log in before you can comment on or make changes to this bug.