Fix UTF8CharLength 87/37387/1
authorTomasz Iwanek <t.iwanek@samsung.com>
Wed, 25 Mar 2015 12:53:16 +0000 (13:53 +0100)
committerTomasz Iwanek <t.iwanek@samsung.com>
Wed, 25 Mar 2015 12:59:25 +0000 (13:59 +0100)
commit079e904c5a1430bf72b1c5f1fe369a9881291e9a
tree734d23735c65925de3bbcb88d8081389921d7eda
parent3f5da85f47d39932c823ea08e0a944ab8ee22145
Fix UTF8CharLength

This function is wrong because of char's 'signness' is
implementation defined.

C++ standard doesn't define char as unsigned char.
Basically,
  char != signed char
  char != unsigned char

This was ok for arm architeture but not for x86.
This overlook caused calculated length of character
to be wrong.

Change-Id: Ifd826ae38098e78da8de858fd5720a6a3dc46a38
src/utils/string_util.cc