This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug locale/14008] iconv behavior is incorrect when character is not present in dest charset


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]