Activity log for bug #1562308

Date Who What changed Old value New value Message
2016-03-26 13:33:26 Toshio Ito bug added bug
2016-03-26 13:33:26 Toshio Ito attachment added Example input that causes the problem https://bugs.launchpad.net/bugs/1562308/+attachment/4612456/+files/lesstest.long_jap.txt
2016-08-01 16:08:09 Launchpad Janitor less (Ubuntu): status New Confirmed
2016-09-14 10:20:19 Mitsuya Shibata bug added subscriber Mitsuya Shibata
2016-09-15 10:59:04 Mitsuya Shibata less (Ubuntu): status Confirmed In Progress
2016-09-15 11:24:33 Mitsuya Shibata attachment added fix-1562308.debdiff https://bugs.launchpad.net/ubuntu/+source/less/+bug/1562308/+attachment/4741380/+files/fix-1562308.debdiff
2016-09-15 11:24:55 Mitsuya Shibata bug added subscriber Ubuntu Sponsors Team
2016-09-16 07:07:03 Mathew Hodson tags xenial
2016-09-16 07:08:00 Mathew Hodson less (Ubuntu): importance Undecided Medium
2016-09-16 13:11:09 Mitsuya Shibata less (Ubuntu): status In Progress Confirmed
2017-01-20 21:31:16 Brian Murray bug added subscriber Brian Murray
2017-03-24 18:12:45 Mitsuya Shibata attachment added fix-1562308.debdiff https://bugs.launchpad.net/ubuntu/+source/less/+bug/1562308/+attachment/4844867/+files/fix-1562308.debdiff
2017-03-24 18:13:27 Mitsuya Shibata tags xenial patch patch-accepted-upstream xenial
2017-03-29 10:24:34 Łukasz Zemczak nominated for series Ubuntu Yakkety
2017-03-29 10:24:34 Łukasz Zemczak bug task added less (Ubuntu Yakkety)
2017-03-29 10:24:34 Łukasz Zemczak nominated for series Ubuntu Xenial
2017-03-29 10:24:34 Łukasz Zemczak bug task added less (Ubuntu Xenial)
2017-03-29 10:39:52 Łukasz Zemczak less (Ubuntu Xenial): importance Undecided Medium
2017-03-29 10:39:55 Łukasz Zemczak less (Ubuntu Yakkety): importance Undecided Medium
2017-03-29 10:46:22 Łukasz Zemczak removed subscriber Ubuntu Sponsors Team
2017-03-31 10:08:06 Łukasz Zemczak description When you scroll down text with "j" key and encounter a wrapped line with wide characters (such as UTF8-encoded Japanese characters), "less" seems to show the whole wrapped line at a single "j" key, causing the view scroll down by 2 lines at once. Strangely, if you type "k" to scroll up, it does that by only 1 line. As a result, there is a missing line that should have been shown. Even stranger stuff (i.e., duplicate lines) happens when you type "j" and "k" alternately when a wrapped line with wide characters is at the bottom of the view. # Steps to reproduce 1. Open xterm. 2. Set the geometory of xterm to 71x22. 3. Open the attached lesstest.long_jap.txt with less (maybe you need environment variable LANG=ja_JP.UTF-8) 4. Type "j", then you will see "003" at the top, and a long wrapped line with Japanese characters at the bottom. 5. Type "k", then you will see "001" and "003" at the top. "002" is missing. # Expected behavior In step 4, only the first part of the wrapped line should be shown. In step 5, all "001", "002" and "003" should be shown. # Test Environment - Xubuntu 16.04 (Xenial) beta (in VirtualBox on Xubuntu 14.04) - less: 481-2.1 - xterm: 322-1ubuntu1 - Japanese environment (LANG=ja_JP.UTF-8) # Note - The same problem happens on xfce4-terminal (0.6.3-2ubuntu1) - lv (4.51-2.3build1) doesn't have such problem. - In "less" in Xubuntu 14.04 (version 458-2), this problem didn't exist. [Impact] Currently less doesn't work correctly with UTF-8 encoded Japanese characters, wrapping the lines in an invalid manner, missing or duplicating them (see original description below for exact error cases). For locale like these it breaks the general workflow, making the tool unreliable. [Test Case] 1. Open xterm. 2. Set the geometory of xterm to 71x22. 3. Open the attached lesstest.long_jap.txt with less (maybe you need environment variable LANG=ja_JP.UTF-8) 4. Type "j", then you will see "003" at the top and only the first part of the wrapped line should be shown. 5. Type "k", then you will see "001", "002" and "003" at the top. [Regression Potential] Rather low as the fix is present in the beta version of less for over 5 months already, which seems to be enough time for general audience testing. But since the width tables are modified potentially this could lead to other similar breakages related to wide-character handling. [Original Description] When you scroll down text with "j" key and encounter a wrapped line with wide characters (such as UTF8-encoded Japanese characters), "less" seems to show the whole wrapped line at a single "j" key, causing the view scroll down by 2 lines at once. Strangely, if you type "k" to scroll up, it does that by only 1 line. As a result, there is a missing line that should have been shown. Even stranger stuff (i.e., duplicate lines) happens when you type "j" and "k" alternately when a wrapped line with wide characters is at the bottom of the view. # Steps to reproduce 1. Open xterm. 2. Set the geometory of xterm to 71x22. 3. Open the attached lesstest.long_jap.txt with less (maybe you need    environment variable LANG=ja_JP.UTF-8) 4. Type "j", then you will see "003" at the top, and a long wrapped    line with Japanese characters at the bottom. 5. Type "k", then you will see "001" and "003" at the top. "002" is    missing. # Expected behavior In step 4, only the first part of the wrapped line should be shown. In step 5, all "001", "002" and "003" should be shown. # Test Environment - Xubuntu 16.04 (Xenial) beta (in VirtualBox on Xubuntu 14.04) - less: 481-2.1 - xterm: 322-1ubuntu1 - Japanese environment (LANG=ja_JP.UTF-8) # Note - The same problem happens on xfce4-terminal (0.6.3-2ubuntu1) - lv (4.51-2.3build1) doesn't have such problem. - In "less" in Xubuntu 14.04 (version 458-2), this problem didn't   exist.
2017-03-31 10:37:38 Launchpad Janitor less (Ubuntu): status Confirmed Fix Released
2017-04-05 13:08:10 Chris J Arges less (Ubuntu Xenial): status New Fix Committed
2017-04-05 13:08:13 Chris J Arges bug added subscriber Ubuntu Stable Release Updates Team
2017-04-05 13:08:15 Chris J Arges bug added subscriber SRU Verification
2017-04-05 13:08:21 Chris J Arges tags patch patch-accepted-upstream xenial patch patch-accepted-upstream verification-needed xenial
2017-04-05 13:10:33 Chris J Arges less (Ubuntu Yakkety): status New Fix Committed
2017-04-06 01:10:14 Mitsuya Shibata attachment added Test on xenial https://bugs.launchpad.net/ubuntu/+source/less/+bug/1562308/+attachment/4855863/+files/Screenshot%20from%202017-04-06%2009-53-00.png
2017-04-06 01:10:51 Mitsuya Shibata attachment added Test on yakkety https://bugs.launchpad.net/ubuntu/+source/less/+bug/1562308/+attachment/4855864/+files/Screenshot%20from%202017-04-06%2010-04-18.png
2017-04-06 01:11:17 Mitsuya Shibata tags patch patch-accepted-upstream verification-needed xenial patch patch-accepted-upstream verification-done xenial yakkety
2017-04-06 01:13:05 Mitsuya Shibata tags patch patch-accepted-upstream verification-done xenial yakkety patch patch-accepted-upstream verification-done verification-done-xenial verification-done-yakkety
2017-04-13 20:14:02 Brian Murray tags patch patch-accepted-upstream verification-done verification-done-xenial verification-done-yakkety patch patch-accepted-upstream verification-done verification-done-xenial verification-done-yakkety verification-failed
2017-06-20 14:48:03 Mitsuya Shibata tags patch patch-accepted-upstream verification-done verification-done-xenial verification-done-yakkety verification-failed patch patch-accepted-upstream verification-done verification-done-xenial verification-done-yakkety
2017-06-22 12:50:11 Robie Basak removed subscriber Ubuntu Stable Release Updates Team
2017-06-22 12:50:21 Launchpad Janitor less (Ubuntu Yakkety): status Fix Committed Fix Released
2017-06-22 13:00:15 Launchpad Janitor less (Ubuntu Xenial): status Fix Committed Fix Released