[SCIM] Bug#280374: scim: spews to standard output

Osamu Aoki osamu at debian.org
Mon Nov 8 23:06:04 PST 2004


Does the following bug report fixed in CVS?

----- Forwarded message from "Aaron M. Ucko" <ucko at debian.org> -----

From: "Aaron M. Ucko" <ucko at debian.org>
Subject: Bug#280374: scim: spews to standard output
To: Debian Bug Tracking System <submit at bugs.debian.org>
Date: Mon, 08 Nov 2004 18:53:59 -0500
X-CRM114-Status: Good  ( pR: 60.3820 )

Package: scim
Version: 1.0.1-1
Severity: important
Tags: patch

The latest version of scim logs a bunch of messages to standard
output, and as such interferes badly with programs such as ssh-askpass
that should NOT produce any output besides what the user entered.

Here's a patch that redirects the messages to standard error, where
they're at least more or less tolerable (though one still has to make
sure the scim daemon's already running, or else it will spew
troublesome messages of its own).

--- scim-1.0.1.orig/src/scim_backend.cpp
+++ scim-1.0.1/src/scim_backend.cpp
@@ -773,14 +773,14 @@
 
     //load IMEngine modules
     for (size_t i = 0; i < modules.size (); ++i) {
-        std::cout << "Loading IMEngine module: " << modules [i] << " ...\n";
+        std::cerr << "Loading IMEngine module: " << modules [i] << " ...\n";
 
         module_factories_count = 0;
 
         if (m_impl->m_engine_modules [i].load (modules [i], config) &&
             m_impl->m_engine_modules [i].valid ()) {
             for (size_t j=0; j < m_impl->m_engine_modules [i].number_of_factories (); ++j) {
-                std::cout << "    Loading IMEngine Factory " << j << " ... ";
+                std::cerr << "    Loading IMEngine Factory " << j << " ... ";
 
                 // Try to load a IMEngine Factory.
                 try {
@@ -799,19 +799,19 @@
 
                         all_factories_count ++;
                         module_factories_count ++;
-                        std::cout << ": OK\n";
+                        std::cerr << ": OK\n";
                     } else {
-                        std::cout << ": Disabled\n";
+                        std::cerr << ": Disabled\n";
                         factory.reset ();
                     }
                 } else {
-                    std::cout << ": Failed\n";
+                    std::cerr << ": Failed\n";
                 }
             }
             if (module_factories_count) {
-                std::cout << modules [i] << " IMEngine module is successfully loaded.\n";
+                std::cerr << modules [i] << " IMEngine module is successfully loaded.\n";
             } else {
-                std::cout << "No Factory loaded from " << modules [i] << " IMEngine module!\n";
+                std::cerr << "No Factory loaded from " << modules [i] << " IMEngine module!\n";
                 m_impl->m_engine_modules [i].unload ();
             }
         } else {


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.27
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages scim depends on:
ii  libatk1.0-0               1.6.1-5        The ATK accessibility toolkit
ii  libc6                     2.3.2.ds1-18   GNU C Library: Shared libraries an
ii  libgcc1                   1:3.4.2-3      GCC support library
ii  libglib2.0-0              2.4.7-1        The GLib library of C routines
ii  libgtk2.0-0               2.4.13-1       The GTK+ graphical user interface 
ii  libpango1.0-0             1.4.1-4        Layout and rendering of internatio
ii  libstdc++5                1:3.3.5-2      The GNU Standard C++ Library v3
ii  libx11-6                  4.3.0.dfsg.1-8 X Window System protocol client li
ii  xlibs                     4.3.0.dfsg.1-8 X Window System client libraries m

-- no debconf information





----- End forwarded message -----


More information about the scim mailing list