This is the mail archive of the glibc-bugs@sources.redhat.com 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 libc/1124] iconv incorrectly converts cp1255


------- 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.


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