Your message dated Sun, 06 Feb 2005 03:47:09 -0500
with message-id <[EMAIL PROTECTED]>
and subject line Bug#288309: fixed in kdewebdev 1:3.3.2-2
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(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)

--------------------------------------
Received: (at submit) by bugs.debian.org; 2 Jan 2005 23:27:08 +0000
>From [EMAIL PROTECTED] Sun Jan 02 15:27:08 2005
Return-path: <[EMAIL PROTECTED]>
Received: from tron.kn.vutbr.cz [147.229.191.152] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1ClF7s-0000gM-00; Sun, 02 Jan 2005 15:27:08 -0800
Received: from hammerfall (a05-0930b.kn.vutbr.cz [147.229.222.29])
        by tron.kn.vutbr.cz (8.12.9p2/8.12.9) with ESMTP id j02NR5Pr010276;
        Mon, 3 Jan 2005 00:27:05 +0100 (CET)
        (envelope-from [EMAIL PROTECTED])
Received: from michich by hammerfall with local (Exim 4.34)
        id 1ClF7p-00006u-Ob; Mon, 03 Jan 2005 00:27:05 +0100
Content-Type: multipart/mixed; boundary="===============1627861588240093571=="
MIME-Version: 1.0
From: Michal Schmidt <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: kommander: execbutton should flush stdout after writing to it
X-Mailer: reportbug 3.5
Date: Mon, 03 Jan 2005 00:27:05 +0100
Message-Id: <[EMAIL PROTECTED]>
X-Virus-Scanned: clamd / ClamAV version 0.70, clamav-milter version 0.70j
X-Scanned-By: milter-spamc/0.19.268 (tron [147.229.191.152]); Mon, 03 Jan 2005 
00:27:05 +0100
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.8 required=4.0 tests=BAYES_00,FROM_ENDS_IN_NUMS,
        HAS_PACKAGE autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

This is a multi-part MIME message sent by reportbug.

--===============1627861588240093571==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: kommander
Version: 1:3.3.1-1
Severity: normal

ExecButton doesn't flush stdout after writing to it.
I have a kommander dialog with some ExecButtons, which should just print
some text to stdout. They have their "Kommander text" set like this:

echo "COUNT"

This works fine when the stdout is a terminal. When I press the buttons,
I can see the texts appearing on the terminal. But it doesn't work as I
expect when the stdout is redirected to a pipe. I'd like to be able to
do this:

kmdr-executor mydialog.kmdr | while read COMMAND; do
        case $COMMAND in
                COUNT) # do something
                        ;;
                # more commands
                # ...
        esac
done

When the stdout is redirected to a pipe, the COMMANDs are buffered and
will all be executed after kmdr-executor exits. I need them executed
immediately.
I looked into the sources and I saw that execbutton.cpp writes the
output with:
cout << process->output();
When I add a flush, it works as expected:
cout << process->output() << flush;

I'll attach a patch.

Michal

-- System Information:
Debian Release: 3.1
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.10-rc2-mm4sk98
Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)

Versions of packages kommander depends on:
ii  kdelibs4         4:3.3.1-1               KDE core libraries
ii  libart-2.0-2     2.3.16-6                Library of functions for 2D graphi
ii  libc6            2.3.2.ds1-20.0.0.1.gcc4 GNU C Library: Shared libraries an
ii  libfam0c102      2.7.0-6                 client library to control the FAM 
ii  libgcc1          1:4.0-0pre1.0.0.1.gcc4  GCC support library
ii  libice6          4.3.0.dfsg.1-8          Inter-Client Exchange library
ii  libidn11         0.5.2-3                 GNU libidn library, implementation
ii  libpng12-0       1.2.8rel-1              PNG library - runtime
ii  libqt3c102-mt    3:3.3.3-7.0.0.1.amd64   Qt GUI Library (Threaded runtime v
ii  libsm6           4.3.0.dfsg.1-8          X Window System Session Management
ii  libstdc++6       4.0-0pre1.0.0.1.gcc4    The GNU Standard C++ Library v3
ii  libx11-6         4.3.0.dfsg.1-8          X Window System protocol client li
ii  libxext6         4.3.0.dfsg.1-8          X Window System miscellaneous exte
ii  libxrender1      0.8.3-7                 X Rendering Extension client libra
ii  xlibs            4.3.0.dfsg.1-8          X Window System client libraries m
ii  zlib1g           1:1.2.2-4               compression library - runtime

-- no debconf information

--===============1627861588240093571==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="kommander-flush.patch"

--- kdewebdev-3.3.1/kommander/widgets/execbutton.cpp    2004-10-03 
09:47:57.000000000 +0200
+++ kdewebdev-3.3.1.mich/kommander/widgets/execbutton.cpp       2005-01-02 
22:52:21.000000000 +0100
@@ -111,7 +111,7 @@ void ExecButton::startProcess()
     setEnabled(true);
     KApplication::restoreOverrideCursor();
     if (writeStdout())
-      cout << process->output();
+      cout << process->output() << flush;
   }
 }
 
@@ -141,7 +141,7 @@ void ExecButton::processExited(MyProcess
   if (blockGUI() != None)
     setEnabled(true);
   if (blockGUI() != GUI && writeStdout())
-    cout << p->output();
+    cout << p->output() << flush;
   delete p;
 }
 

--===============1627861588240093571==--

---------------------------------------
Received: (at 288309-close) by bugs.debian.org; 6 Feb 2005 08:53:08 +0000
>From [EMAIL PROTECTED] Sun Feb 06 00:53:08 2005
Return-path: <[EMAIL PROTECTED]>
Received: from newraff.debian.org [208.185.25.31] (mail)
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1CxiAG-0007lu-00; Sun, 06 Feb 2005 00:53:08 -0800
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
        id 1Cxi4T-0002sD-00; Sun, 06 Feb 2005 03:47:09 -0500
From: Ben Burton <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.55 $
Subject: Bug#288309: fixed in kdewebdev 1:3.3.2-2
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Sun, 06 Feb 2005 03:47:09 -0500
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 2

Source: kdewebdev
Source-Version: 1:3.3.2-2

We believe that the bug you reported is fixed in the latest version of
kdewebdev, which is due to be installed in the Debian FTP archive:

kdewebdev-doc-html_3.3.2-2_all.deb
  to pool/main/k/kdewebdev/kdewebdev-doc-html_3.3.2-2_all.deb
kdewebdev_3.3.2-2.diff.gz
  to pool/main/k/kdewebdev/kdewebdev_3.3.2-2.diff.gz
kdewebdev_3.3.2-2.dsc
  to pool/main/k/kdewebdev/kdewebdev_3.3.2-2.dsc
kdewebdev_3.3.2-2_all.deb
  to pool/main/k/kdewebdev/kdewebdev_3.3.2-2_all.deb
kfilereplace_3.3.2-2_i386.deb
  to pool/main/k/kdewebdev/kfilereplace_3.3.2-2_i386.deb
kimagemapeditor_3.3.2-2_i386.deb
  to pool/main/k/kdewebdev/kimagemapeditor_3.3.2-2_i386.deb
klinkstatus_3.3.2-2_i386.deb
  to pool/main/k/kdewebdev/klinkstatus_3.3.2-2_i386.deb
kommander-dev_3.3.2-2_i386.deb
  to pool/main/k/kdewebdev/kommander-dev_3.3.2-2_i386.deb
kommander_3.3.2-2_i386.deb
  to pool/main/k/kdewebdev/kommander_3.3.2-2_i386.deb
kxsldbg_3.3.2-2_i386.deb
  to pool/main/k/kdewebdev/kxsldbg_3.3.2-2_i386.deb
quanta-data_3.3.2-2_all.deb
  to pool/main/k/kdewebdev/quanta-data_3.3.2-2_all.deb
quanta_3.3.2-2_i386.deb
  to pool/main/k/kdewebdev/quanta_3.3.2-2_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ben Burton <[EMAIL PROTECTED]> (supplier of updated kdewebdev package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sun,  6 Feb 2005 17:51:59 +1100
Source: kdewebdev
Binary: kimagemapeditor quanta-data kommander kdewebdev kdewebdev-doc-html 
kommander-dev quanta klinkstatus kxsldbg kfilereplace
Architecture: source i386 all
Version: 1:3.3.2-2
Distribution: unstable
Urgency: low
Maintainer: Ben Burton <[EMAIL PROTECTED]>
Changed-By: Ben Burton <[EMAIL PROTECTED]>
Description: 
 kdewebdev  - web development apps from the official KDE release
 kdewebdev-doc-html - KDE web development documentation in HTML format
 kfilereplace - batch search-and-replace component for KDE
 kimagemapeditor - HTML image map editor for KDE
 klinkstatus - web link validity checker for KDE
 kommander  - visual dialog builder and executor tool
 kommander-dev - development files for Kommander
 kxsldbg    - graphical XSLT debugger for KDE
 quanta     - web development environment for KDE
 quanta-data - data files for Quanta Plus web development environment
Closes: 278560 288309
Changes: 
 kdewebdev (1:3.3.2-2) unstable; urgency=low
 .
   * Removed empty lines from php.docrc, thereby fixing command-line
     warnings when starting quanta (closes: #278560).
   * Fixed ExecButton output when using kommander with pipes;
     thanks to Michal Schmidt for the patch (closes: #288309).
Files: 
 c964a87b452e043e2c2d9e787dc60066 846 web optional kdewebdev_3.3.2-2.dsc
 f68b3a967c00529a8abd210676f6ded1 1709 web optional kdewebdev_3.3.2-2.diff.gz
 f221ad1fb492b6e415e9fb168ee8ce96 6158 kde optional kdewebdev_3.3.2-2_all.deb
 a05343a4536465ed35a6893f82ad60e3 82296 doc optional 
kdewebdev-doc-html_3.3.2-2_all.deb
 db903c449ab4b5a4247888a8d3e0957b 916394 web optional 
quanta-data_3.3.2-2_all.deb
 b6aec4c4a563255750225afc31381b00 1808418 web optional quanta_3.3.2-2_i386.deb
 948fcddfd826dc5cdbc8bb40737aa52d 175718 kde optional 
kfilereplace_3.3.2-2_i386.deb
 ad304211444d12b5a37bb806f7f5eca3 317078 web optional 
kimagemapeditor_3.3.2-2_i386.deb
 4738a4f6321c87065a842ed324aee6ad 249894 web optional 
klinkstatus_3.3.2-2_i386.deb
 6b8f964b795e09ed89032dac88ab9bb7 1466766 kde optional 
kommander_3.3.2-2_i386.deb
 6b3f914bfd2e9c4da71b56f38c50d3ef 21244 libdevel optional 
kommander-dev_3.3.2-2_i386.deb
 8f826ed9f1f4290c8d6129a4cbf3da25 564686 text optional kxsldbg_3.3.2-2_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCBdQ5MQNuxza4YcERAoDZAJ453Ey3E4nqtFYVI1kLaNSronJOPACdFcjz
O9Y0dASk9wBEcfWKVoJZITc=
=Ci/E
-----END PGP SIGNATURE-----


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

Reply via email to