This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/1124] iconv incorrectly converts cp1255
- From: "bruno at clisp dot org" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 1 Aug 2005 12:11:30 -0000
- Subject: [Bug libc/1124] iconv incorrectly converts cp1255
- References: <20050723195836.1124.z9u2k@bezeqint.net>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- Additional Comments From bruno at clisp dot org 2005-08-01 12:11 -------
In the original code snippet, there's a call to
iconv(the_iconv, NULL, NULL, &utf8, &bytes_written);
missing at the end.
Ilya Konstantinov wrote:
> Thus, the solution would be to mandate all iconv users to call iconv(cd, NULL,
> NULL, &outbuf, &outlen) once more after they finished their conversion loop,
> just to flush out remaining data.
Absolutely. That's how iconv() is meant to be used.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://sources.redhat.com/bugzilla/show_bug.cgi?id=1124
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.