[Bug libc/2502] New: iconv complains about seemingly valid UTF-7 input

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug libc/2502] New: iconv complains about seemingly valid UTF-7 input

glaubitz at physik dot fu-berlin.de
I must be missing something but why in C locale do I get this

% echo '+' | iconv -t utf7  # ok so far
+-
% echo -n '+' | iconv -t utf7;echo # and it's the same thing without newline
+-
% echo '+-' | iconv -f utf7 # and it works in the other direction too, good
+
% echo -n '+-' | iconv -f utf7 # but why doesn't it work without newline?
iconv: incomplete character or shift sequence at end of buffer

"+-" sequence seems to be valid UTF-7 according to my reading of RFC 1642 and
I'd also expect UTF-7 transformation to be reversible.

--
           Summary: iconv complains about seemingly valid UTF-7 input
           Product: glibc
           Version: 2.3.6
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: vadim at zeitlins dot org
                CC: glibc-bugs at sources dot redhat dot com
  GCC host triplet: i686-pc-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=2502

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
Reply | Threaded
Open this post in threaded view
|

[Bug libc/2502] iconv complains about seemingly valid UTF-7 input

glaubitz at physik dot fu-berlin.de

------- Additional Comments From drepper at redhat dot com  2006-05-02 05:18 -------
Fix in the upstream CVS.

--
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=2502

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.