I just investigated the same bug. "less" loses input lines because it
does not count output lines correctly. The problem is that it assumes
that east asian wide characters have width 1, but in reality, e.g. on
xterm, these characters take 2 positions. In other words, the routine
pwidth() in less-481:line.c is broken (since the is_wide_char(ch)
returns false for characters that take two screen positions).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1562308

Title:
  missing or duplicate lines caused by a wrapped line with wide
  characters

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/less/+bug/1562308/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to