This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/13518] iconv program doesn't handle //IGNORE flag correctly
- From: "ezyang at mit dot edu" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Fri, 23 Dec 2011 00:43:16 +0000
- Subject: [Bug libc/13518] iconv program doesn't handle //IGNORE flag correctly
- Auto-submitted: auto-generated
- References: <bug-13518-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=13518
Edward Z. Yang <ezyang at mit dot edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
Summary|iconv truncates input with |iconv program doesn't
|//IGNORE |handle //IGNORE flag
| |correctly
--- Comment #3 from Edward Z. Yang <ezyang at mit dot edu> 2011-12-23 00:43:16 UTC ---
I think there still is a bug here. If //IGNORE is not supported by iconv_prog,
the behavior between -t with IGNORE and -c should be the same. However, this is
not the case:
ezyang@javelin:~$ Dev/glibc/build/testrun.sh Dev/glibc/build/iconv/iconv_prog
-f utf-8 -t ascii//IGNORE < test.txt | wc -c
Dev/glibc/build/iconv/iconv_prog: illegal input sequence at position 8161
8159
ezyang@javelin:~$ Dev/glibc/build/testrun.sh Dev/glibc/build/iconv/iconv_prog
-f utf-8 -t ascii < test.txt | wc -c
Dev/glibc/build/iconv/iconv_prog: illegal input sequence at position 0
0
For reference, here is iconv running with an invalid extra flag:
ezyang@javelin:~$ Dev/glibc/build/testrun.sh Dev/glibc/build/iconv/iconv_prog
-f utf-8 -t ascii//FOOBAR < test.txt | wc -c
Dev/glibc/build/iconv/iconv_prog: illegal input sequence at position 0
0
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.