• Bug#265635: jabber-jit: JIT corrupts non-ascii names of contacts when i

    From Alexey 'Snake' Nezhdanov@1:229/2 to All on Sat Aug 14 09:20:05 2004
    From: [email protected]

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

    Package: jabber-jit
    Version: 1.1.6-8.1
    Severity: important
    Tags: patch

    The patch is included in jabber-jit source package but not appplied by
    unknown reason.
    I have tested this patch and it works well at least for cp1251 encoding.

    -- System Information:
    Debian Release: testing/unstable
    APT prefers unstable
    APT policy: (500, 'unstable')
    Architecture: i386 (i686)
    Kernel: Linux 2.6.6
    Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R

    Versions of packages jabber-jit depends on:
    ii jabber-common 0.4 Jabber server and transport (commo ii libc6 2.3.2.ds1-13 GNU C Library: Shared libraries an ii libgcc1 1:3.4.1-3 GCC support library
    ii libstdc++5 1:3.3.4-5 The GNU Standard C++ Library v3
    ii procps 1:3.2.1-2 The /proc file system utilities

    -- no debconf information

    --- jabber-jit-1.1.6.orig/jit/jit/contact.c
    +++ jabber-jit-1.1.6/jit/jit/contact.c
    @@ -419,8 +419,7 @@
    contact to the user's roster if it was not present */
    x = jutil_presnew(JPACKET__SUBSCRIBED,jid_full(s->id),NULL);
    xmlnode_put_attrib(x,"from",jid_full(it_uin2jid(xmlnode_pool(x),c->uin,s->from->server)));
    - if(name != NULL)
    - xmlnode_put_attrib(x,"name",it_convert_windows2utf8(xmlnode_pool(x),name));
    + if(name != NULL) xmlnode_put_attrib(x,"name",name);
    it_deliver(s->ti,x);
    }

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)