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>
Fri, 19 Aug 2011 16:50:05 +0000 (16:50 +0000)
commit6d77e7946f7f1143c8ce75f9cbf2f6ddbab5e57a
tree700dc96510c73e806619d9eb52308c8c97ad8439
parente395ebd37ccd1ff4af1f6878465852bcffb24e46
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