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

Bug#466340: Some conversions to ISO-2022-JP produce invalid text



Package: libc6
Version: 2.7-6
Severity: normal
File: /usr/bin/iconv

Converting the following UTF8 sequence to ISO-2022-JP//TRANSLIT, then
back to UTF-8 fails:
$ perl -e 'print join("", map { chr hex $_ } qw/e3 83 a2 ef bd 9e 0a/)' | \
  iconv -f utf8  -t iso-2022-jp//TRANSLIT|iconv -f iso-2022-jp -t utf8
モiconv: illegal input sequence at position 5

Either iconv has generated invalid ISO-2022-JP, or it refuses to accept
valid ISO-2022-JP.

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

Kernel: Linux 2.6.18.8-domU-linode7 (SMP w/4 CPU cores)
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 libc6 depends on:
ii  libgcc1                 1:4.3-20080202-1 GCC support library

libc6 recommends no packages.

-- debconf information:
  glibc/restart-failed:
  glibc/restart-services:



Reply to: