Make wrap_rows not wrap inside utf-8 multibyte sequences
authorest31 <MTest31@outlook.com>
Wed, 17 Jun 2015 20:10:22 +0000 (22:10 +0200)
committerest31 <MTest31@outlook.com>
Wed, 17 Jun 2015 20:22:15 +0000 (22:22 +0200)
commit43dab2ffc899133fbd8bb4bf4d209a3bbc70b901
treeffc9e5c0a794380db4e5b746c9a75df84ae69355
parent6dcf549ba9d522ed991184401658e85d3554ad8e
Make wrap_rows not wrap inside utf-8 multibyte sequences

Also count multibyte sequences as "one" character.
Adds unittest for the bug reporter's case.
Fixes #2796.
src/unittest/test_utilities.cpp
src/util/string.h