public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ezyang at mit dot edu" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sources.redhat.com
Subject: [Bug libc/13518] iconv program doesn't handle //IGNORE flag correctly
Date: Fri, 23 Dec 2011 00:43:00 -0000	[thread overview]
Message-ID: <bug-13518-131-ksXaHg8ivq@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <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.


  parent reply	other threads:[~2011-12-23  0:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-18 22:34 [Bug libc/13518] New: iconv truncates input with //IGNORE ezyang at mit dot edu
2011-12-18 22:56 ` [Bug libc/13518] " ezyang at mit dot edu
2011-12-22 23:42 ` drepper.fsp at gmail dot com
2011-12-23  0:43 ` ezyang at mit dot edu [this message]
2011-12-23  1:02 ` [Bug libc/13518] iconv program doesn't handle //IGNORE flag correctly ezyang at mit dot edu
2014-06-27 11:27 ` fweimer at redhat dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-13518-131-ksXaHg8ivq@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).