Package: weechat-plugins
Version: 0.2.4-1
Severity: normal

Hello,

When a decode charset of ISO-2022-JP is specified using /charset decode,
weechat displays the raw ISO-2022-JP without converting to the system
charset.

This is because of the following test in weechat_iconv_to_internal in
src/common/util.c:
        if (utf8_is_valid (input, NULL))
            return input;

ISO-2022-JP is a 7-bit charset, so all ISO-2022-JP sequences will
validate as (meaningless) UTF-8. The heuristic needs to be modified to
always attempt conversion (and try UTF-8 afterward) when there are no
bytes with the high-order bit set.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-4-k7 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages weechat-plugins depends on:
ii  libaspell15                   0.60.5-1   GNU Aspell spell-checker runtime l
ii  libc6                         2.5-4      GNU C Library: Shared libraries
pn  liblua5.1-0                   <none>     (no description available)
ii  libperl5.8                    5.8.8-7    Shared Perl library
ii  libruby1.8                    1.8.6-1+b1 Libraries necessary to run Ruby 1.
ii  python2.4                     2.4.4-4    An interactive high-level object-o

weechat-plugins recommends no packages.


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

Reply via email to