This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug locale/14008] iconv behavior is incorrect when character is not present in dest charset
- From: "nalimilan at club dot fr" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sat, 06 Feb 2016 15:57:04 +0000
- Subject: [Bug locale/14008] iconv behavior is incorrect when character is not present in dest charset
- Auto-submitted: auto-generated
- References: <bug-14008-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=14008
Milan Bouchet-Valat <nalimilan at club dot fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nalimilan at club dot fr
--- Comment #1 from Milan Bouchet-Valat <nalimilan at club dot fr> ---
This is indeed highly annoying. At least, the documentation should be updated
to mention what error code is used to signal that a sequence that cannot be
represented in the target encoding has been encountered (this is EILSEQ). It
should also mention that glibc does not comply with POSIX on that point.
The documentation is also not clear when it says "If all input from the input
buffer is successfully converted and stored in the output buffer, the function
returns the number of non-reversible conversions performed." [1] Indeed, since
it is said that sequences that cannot be represented in the target encoding
trigger an error, they won't affect the return code. FWIX, POSIX says
"non-identical conversions" instead of "non-reversible".
Finally, the part saying "future versions will provide better ones, but they
are not yet finished"[1] could also be removed, as I guess
backward-compatibility will be preserved, won't it?
1:
http://www.gnu.org/software/libc/manual/html_node/Generic-Conversion-Interface.html
--
You are receiving this mail because:
You are on the CC list for the bug.