This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/2502] New: iconv complains about seemingly valid UTF-7 input
- From: "vadim at zeitlins dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 2 Apr 2006 19:36:37 -0000
- Subject: [Bug libc/2502] New: iconv complains about seemingly valid UTF-7 input
- Reply-to: sourceware-bugzilla at sourceware dot org
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.