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: "z9u2k at bezeqint dot net" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 31 Jul 2005 21:09:58 -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 z9u2k at bezeqint dot net 2005-07-31 21:09 -------
Is cp1255 the only encoding that's stateful?
I would advise against hiding the flush decision inside iconv() - some users
might need different flush behaviors, and forcing a single one might cause
problems in the future.
Instead, I would suggest a method for the user to decide whether he likes a
flush and in which fashion (but leaving the default behaviour as it is today for
backward-compatibility).
This can be obtained using a function parameter with a default value to iconv(),
or a manipulation function on iconv_t that does that (something like
iconv_flush_policy, iconv_flush_strategy... whatever).
I haven't gone into the iconv code, the coding conventions for the library or
encoding related details, so my ideas might be way unacceptable by this group,
but these are my 2c to give :)
--
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.