[haiku-commits] haiku: hrev45484 - src/kits/locale

  • From: anevilyak@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 12 Apr 2013 00:05:14 +0200 (CEST)

hrev45484 adds 1 changeset to branch 'master'
old head: 07d1d01afc6082092782452d1b793c3d1e60c6a6
new head: 04b78a402de6a2dce8fadf0f1a240b1ed1a1dab9
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=04b78a4+%5E07d1d01

----------------------------------------------------------------------------

04b78a4: Fix #9659.
  
  BUnicodeChar::ToUTF8() had the same regression as ::FromUTF8() as far as
  not advancing the input string pointer, which broke building
  case-insensitive queries.

                                      [ Rene Gollent <anevilyak@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev45484
Commit:      04b78a402de6a2dce8fadf0f1a240b1ed1a1dab9
URL:         http://cgit.haiku-os.org/haiku/commit/?id=04b78a4
Author:      Rene Gollent <anevilyak@xxxxxxxxx>
Date:        Thu Apr 11 22:03:56 2013 UTC

Ticket:      https://dev.haiku-os.org/ticket/9659

----------------------------------------------------------------------------

1 file changed, 1 insertion(+)
src/kits/locale/UnicodeChar.cpp | 1 +

----------------------------------------------------------------------------

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;
 }
 
 


Other related posts: