Bug 13517

Summary: iconv generates spurious warnings even though //IGNORE is set
Product: glibc Reporter: Edward Z. Yang <ezyang>
Component: libcAssignee: Ulrich Drepper <drepper.fsp>
Status: RESOLVED INVALID    
Severity: normal Flags: fweimer: security-
Priority: P2    
Version: 2.14   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

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.