From: David Levine Date: Fri, 4 Jan 2013 03:59:44 +0000 (-0600) Subject: In cpstripped() and cptrimmed(), if a multibyte character is X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/71eaed755250fdd6ac66d1139e59a2cc7ad3980e?ds=inline;hp=71eaed755250fdd6ac66d1139e59a2cc7ad3980e In cpstripped() and cptrimmed(), if a multibyte character is found, only count it as taking up one character in the destination buffer (if it has enought room). This way, scan(1)'s output won't be jagged if there are any subjects, for example, that have multibyte characters. Added a test for this to test-scan-multibyte, and moved the test for an invalid multibyte sequence from test-scan to it. ---