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

Bug#249760: libc6: iconv doesn't fail if asked to convert from bad iso_8859-1



Package: libc6
Version: 2.3.2.ds1-12
Severity: normal

Based on iso_8859-1(7) and ascii(7) it looks to me like \200 (octal) is
not a valid character. However, iconv doesn't complain about converting
it whereas it does complain about converting illegal utf8:

$ /bin/echo -e '\200' | iconv -f iso_8859-1 -t utf8 > /dev/null; echo $?
0
$ /bin/echo -e '\200' | iconv -f utf8 -t utf8 > /dev/null; echo $?      
iconv: illegal input sequence at position 0
1
$ 

I think it should consistently complain.

This may be related to bug #231461


Thanks
Ian

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux matrix 2.6.5 #1 Fri Apr 23 04:02:58 BST 2004 i586
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8

Versions of packages libc6 depends on:
ii  libdb1-compat                 2.1.3-5    The Berkeley database routines [gl

-- no debconf information




Reply to: