[haiku-bugs] Re: [Haiku] #9659: Queries doesn't work anymore

  • From: "siarzhuk" <trac@xxxxxxxxxxxx>
  • Date: Thu, 11 Apr 2013 21:16:13 -0000

#9659: Queries doesn't work anymore
-------------------------------+------------------------------------------
   Reporter:  Giova84          |      Owner:  anevilyak
       Type:  bug              |     Status:  in-progress
   Priority:  normal           |  Milestone:  R1
  Component:  Kits/Locale Kit  |    Version:  R1/Development
 Resolution:                   |   Keywords:  Queries doesn't work anymore
 Blocked By:                   |   Blocking:
Has a Patch:  0                |   Platform:  x86
-------------------------------+------------------------------------------

Comment (by siarzhuk):

 Replying to [comment:9 anevilyak]:
 > Problem understood, will fix it after work today. It's a similar
 regression to the one that led to #9649.

 You are right. The same fix you did for FromUTF8 help to resolve this
 issue by advancing pointer in ToUTF8:

 {{{
 diff --git a/src/kits/locale/UnicodeChar.cpp
 b/src/kits/locale/UnicodeChar.cpp
 index eed3b9c..bdb032c 100644
 --- a/src/kits/locale/UnicodeChar.cpp
 +++ b/src/kits/locale/UnicodeChar.cpp
 @@ -245,6 +245,7 @@ BUnicodeChar::ToUTF8(uint32 c, char **out)
  {
         int i = 0;
         U8_APPEND_UNSAFE(*out, i, c);
 +      *out += i;
  }

 }}}

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

Other related posts: