#976: convert_from_utf8() broken --------------------------------------+------------------------------ Reporter: axeld | Owner: pulkomandy Type: bug | Status: assigned Priority: normal | Milestone: Unscheduled Component: Kits/libtextencoding.so | Version: R1/Development Resolution: | Keywords: Blocked By: | Has a Patch: 0 Platform: All | Blocking: --------------------------------------+------------------------------ Changes (by pulkomandy): * milestone: R1 => Unscheduled Old description: > convert_from_utf8() uses iconv() in the background. However, it > opens/closes the iconv context with every invocation, which is just > wrong. > > It becomes obvious with the UTF-16 encoding, where a marker is added at > the beginning of the file, or, in our case, for every call to > convert_from_utf8(). New description: convert_from_utf8() uses iconv() in the background. However, it opens/closes the iconv context with every invocation, which is just wrong. It becomes obvious with the UTF-16 encoding, where a marker is added at the beginning of the file, or, in our case, for every call to convert_from_utf8(). It is not possible to open/close the context properly without changing the API. Since this conflicts with the goal of Haiku R1, this bug is delayed to post-R1 schedule. Likely, a new API will need to be designed as part of the locale kit. It may be done before R2, and coexist with the legacy one. -- -- Ticket URL: <http://dev.haiku-os.org/ticket/976#comment:11> Haiku <http://dev.haiku-os.org> Haiku - the operating system.