[pacman-dev] [Bug] using strlen with utf8
pierre at archlinux.de
Wed Feb 14 07:17:47 EST 2007
it seems as if the function strlen only counts the number of bytes within a
given string and not the number of characters. In case of utf8 a character
can have a length of one or two bytes.
The attached screenshot show that in trans.c:337 the length is calculated
wrong (because he counts the ü twice). When replacing ü with ue everything is
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 10425 bytes
Desc: not available
More information about the pacman-dev