[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#198742: marked as done (sourcenav: Russian input is broken in all windows)



Your message dated Fri,  5 Feb 2010 01:14:02 +0000 (WET)
with message-id <20100205011402.B85201103D@kmos.homeip.net>
and subject line Package sourcenav has been removed from Debian
has caused the Debian Bug report #198742,
regarding sourcenav: Russian input is broken in all windows
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
198742: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=198742
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: sourcenav
Version: 5.0-4.1
Severity: normal

It is not possible to enter any cyrillic letters in all Source Navigator
windows under ru_RU.KOI8-R locale.

This is a problem of many old X programs. Maybe it is fixed in newer
versions. With this version, it may be workarounded by LD_PRELOAD hack:

nikita@zigzag:/usr/local/share/snavigator> cat /usr/local/bin/snavigator
#!/bin/sh

LD_PRELOAD=/usr/local/share/snavigator/locale-bug-workaround.so
export LD_PRELOAD

exec /usr/bin/snavigator $@

nikita@zigzag:/usr/local/share/snavigator> cat locale-bug-workaround.c
#include <X11/Xlib.h>
#include <dlfcn.h>

#define OBJECT "/usr/X11R6/lib/libX11.so.6"
void * obj = 0;
int (*pXLookupString)() = 0;
int (*pXmbLookupString)() = 0;


int XLookupString(
           XKeyEvent *event,
           char *buffer_return,
           int bytes_buffer,
           KeySym *keysym_return,
           Status *status_return)
{
  KeySym k;
  int res;
  if ( !pXLookupString )  {
    if ( !obj )  obj = dlopen ( OBJECT, RTLD_NOW );
    pXLookupString = dlsym ( obj, "XLookupString" );
  }

  res = (*pXLookupString) ( event,buffer_return,bytes_buffer,&k,status_return );
  if ( keysym_return )  *keysym_return=k;

  if ( res==0 && k>=0x6c0 && k<=0x6ff && buffer_return && bytes_buffer>=2 )  {
    buffer_return[0] = (unsigned char)(k-0x600);
    buffer_return[1] = 0;
    res = 1;
  }

  return res;
}


int XmbLookupString(
           XIC ic,
           XKeyPressedEvent *event,
           char *buffer_return,
           int bytes_buffer,
           KeySym *keysym_return,
           Status *status_return)
{
  KeySym k;
  int res;
  if ( !pXmbLookupString )  {
    if ( !obj )  obj = dlopen ( OBJECT, RTLD_NOW );
    pXmbLookupString = dlsym ( obj, "XmbLookupString" );
  }

  res = (*pXmbLookupString) ( ic,event,buffer_return,bytes_buffer,&k,status_return );
  if ( keysym_return )  *keysym_return=k;

  if ( res==0 && k>=0x6c0 && k<=0x6ff && buffer_return && bytes_buffer>=2 )  {
    buffer_return[0] = (unsigned char)(k-0x600);
    buffer_return[1] = 0;
    res = 1;
  }

  return res;
}


-- System Information:
Debian Release: 3.0
Architecture: i386
Kernel: Linux zigzag 2.4.20 #1 þÔ× áÐÒ 10 13:44:15 MSD 2003 i686
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R

Versions of packages sourcenav depends on:
ii  libc6                         2.3.1-17   GNU C Library: Shared libraries an
ii  xlibs                         4.2.1-6    X Window System client libraries

-- no debconf information



--- End Message ---
--- Begin Message ---
Version: 5.1.4-5+rm

You filed the bug http://bugs.debian.org/198742 in Debian BTS
against the package sourcenav. I'm closing it at *unstable*, but it will
remain open for older distributions.

For more information about this package's removal, read
http://bugs.debian.org/263051. That bug might give the reasons why
this package was removed and suggestions of possible replacements.

Don't hesitate to reply to this mail if you have any question.

Thank you for your contribution to Debian.

--
Marco Rodrigues


--- End Message ---

Reply to: