fix counting of UTF8-charwidth
authorWilfried Goesgens <dothebart@citadel.org>
Fri, 19 Aug 2011 16:43:30 +0000 (16:43 +0000)
committerWilfried Goesgens <dothebart@citadel.org>
Sat, 20 Aug 2011 12:08:34 +0000 (12:08 +0000)
commit25440cd0453f1995d6a240c2160143c105737a8a
tree946091702f2b70ee2592258ec1c31f89693cf566
parentfd810beca48507b410c8e06d369286c5843c4bf0
fix counting of UTF8-charwidth

  - Ctdl_GetUtf8SequenceLength(): testbyte needs to be unsigned char, else >> will shift us new bits in from the left
  - we need to shift 'test' to the right
  - start counting at 0
libcitadel/lib/stringbuf.c