[haiku-bugs] Re: [Haiku] #6276: Console backspace doesn't properly handle non-ascii unicode

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Fri, 15 Jul 2011 19:49:12 -0000

#6276: Console backspace doesn't properly handle non-ascii unicode
----------------------------+------------------------------------
   Reporter:  Adek336       |      Owner:  zooey
       Type:  bug           |     Status:  assigned
   Priority:  normal        |  Milestone:  R1
  Component:  System/POSIX  |    Version:  R1/Development
 Resolution:                |   Keywords:  terminal bash readline
 Blocked By:                |   Blocking:  5775, 6094, 6836, 7244
Has a Patch:  0             |   Platform:  All
----------------------------+------------------------------------

Comment (by bonefish):

 Replying to [comment:14 pulkomandy]:
 > Is setting both MB_LEN_MAX and MB_CUR_MAX to 6 a correct fix (seems to
 be the value needed for utf-8) ? Or is there something more involved ?

 It is probably more involved. Possibly also including changes to the
 compiler.

 To represent any Unicode code point 4 byte UTF-8 suffices, BTW. glibc
 seems to define `MB_LEN_MAX` to 16 (sixteen).

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

Other related posts: