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:43:30 +0000 (16:43 +0000)
commitd6a268eae59b4355daf9e5b32d097530e24566e7
tree8366a45dd0ae08b554e59aa9e96a4233762845bd
parent53d9b46861650835b0994566a728c4ba3da8413a
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