[haiku-bugs] Re: [Haiku] #976: convert_from_utf8() broken

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Mon, 02 Feb 2015 12:41:10 -0000

#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:                           |   Blocking:
Has a Patch:  0                        |   Platform:  All
---------------------------------------+----------------------------

Comment (by pulkomandy):

 ICU has the same "problem" as iconv: it needs explicit opening and closing
 of the context. As mentioned in the previous comments, stateless
 conversion is not possible, and a new API will be needed as the current
 one doesn't allow deleting the state when done. The use of an int32 as a
 state cookie is also not helpful, as we can't store a pointer to the state
 there, at least on 64-bit platforms.

 So, we should introduce a separate API to handle this in a more correct
 way.

--
Ticket URL: <https://dev.haiku-os.org/ticket/976#comment:15>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: