- Fixed bug #967, which did not properly determine character widths for UTF8
  characters (thanks to Victor Roetman, Jörg Plate, Markus Kuhn).
This commit is contained in:
Paul Beckingham 2012-07-15 00:14:04 -04:00
parent 76c8d616d9
commit 43c2b402cd
8 changed files with 262 additions and 6 deletions

View file

@ -173,6 +173,7 @@ int utf8_sequence (unsigned int character)
}
////////////////////////////////////////////////////////////////////////////////
// Length of a string in characters.
int utf8_length (const std::string& str)
{
int byteLength = str.length ();