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

James Su suzhe at tsinghua.org.cn
Thu Nov 11 07:53:04 PST 2004


Hi,
  Sorry I gave a wrong comment :-(. I had fixed this issue in scim 1.0 
cvs branch. So it'll be included in future scim 1.0.2 release.

Regards
James Su

Osamu Aoki wrote:

>Hi, 
>
>Aron, please confirm you had problem with ssh-askpass.
>
>I do not understand Zhe's comment either ...
>
>On Wed, Nov 10, 2004 at 10:31:27AM +0800, Zhe Su wrote:
>  
>
>>SCIM 1.0.1 won't print anything to stdout when starting.
>>    
>>
>
>I think Aaron said "logs a bunch of messages to standard output, and
>as such interferes badly with programs such as ssh-askpass". I think
>scim is started before ssh-askpass on his machine.
>
>To the eyes of untrained C++ reader, std::cout certainly looks like
>these output messages are sent out.  You mean these output are handled
>properly in object oriented C++ way so there should be no problem with
>ssh-askpass?
>
>What is the problem sending message to std::cerr?
>
>  
>
>>On Tue, 9 Nov 2004 08:06:04 +0100, Osamu Aoki <osamu at debian.org> wrote:
>>    
>>
>>>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 -----
>>>_______________________________________________
>>>scim mailing list
>>>scim at freedesktop.org
>>>http://freedesktop.org/mailman/listinfo/scim
>>>
>>>      
>>>
>>    
>>
>_______________________________________________
>scim mailing list
>scim at freedesktop.org
>http://freedesktop.org/mailman/listinfo/scim
>
>  
>



More information about the scim mailing list