Bug 13517 - iconv generates spurious warnings even though //IGNORE is set
Summary: iconv generates spurious warnings even though //IGNORE is set
Status: RESOLVED INVALID
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.14
: P2 normal
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-18 22:33 UTC by Edward Z. Yang
Modified: 2014-06-27 11:27 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Edward Z. Yang 2011-12-18 22:33:31 UTC
iconv generates spurious warnings when unconvertible sequences are encountered while IGNORE is enabled.

Expected behavior (from libiconv-1.14):

ezyang@javelin:~/Dev/glibc/build$ printf "\xc3\xbc\x73" |  ~/Desktop/libiconv-1.14/src/iconv_no_i18n -f utf-8 -t ascii//IGNORE
s

Actual behavior (from latest Git glibc-2.14-567-ga4647e7):

ezyang@javelin:~/Dev/glibc/build$ printf "\xc3\xbc\x73" | ./testrun.sh iconv/iconv_prog -f utf-8 -t ascii//IGNORE 
siconv/iconv_prog: illegal input sequence at position 5
Comment 1 Ulrich Drepper 2011-12-22 23:44:10 UTC
You have to use the -c option for iconv and not //IGNORE.