=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/less/cvt.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- src/usr.bin/less/cvt.c 2019/05/15 18:18:08 1.10 +++ src/usr.bin/less/cvt.c 2019/05/15 19:06:01 1.11 @@ -78,8 +78,7 @@ /* Delete backspace and preceding char. */ do { dst--; - } while (dst > odst && - !IS_ASCII_OCTET(*dst) && !IS_UTF8_LEAD(*dst)); + } while (dst > odst && IS_UTF8_TRAIL(*dst)); } else if ((ops & CVT_ANSI) && ch == ESC) { /* Skip to end of ANSI escape sequence. */ src++; /* skip the CSI start char */