Thanks for reporting.  Please answer the following questions.

1) From what kind of machine are you putty'ing into your Ubuntu 18.04
machines?

2) When putty'ed in, what is the output of 'env | grep TERM'?

3) When putty'ed in, please run 'strace -ewrite -s2000 /bin/nano
--ignore 2>TRAIL', paste your seven-line example into nano, then press
^X N, and attach the resultant TRAIL file here.

4) When ssh'ing in from a regular GNU/Linux machine (from an xterm or
from a Linux console) to your Ubuntu 18.04 machines, do you observe the
same problem?

5) If you build the latest nano-4.7 on one of your 18.04 machines, does
the problem still occur when putty'ing in and running nano-4.7?

6) When you putty into an Ubuntu 19.10 machine (if you can find one),
does the problem occur there too?

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to nano in Ubuntu.
https://bugs.launchpad.net/bugs/1858293

Title:
  Missing repeated characters

Status in nano package in Ubuntu:
  New

Bug description:
  Nano 2.9.3
   Ubuntu 18.04.3 LTS - Linux 4.14.157-171 armv7l
   ARMv7 Processor rev 3 (v7l)

   Ubuntu 18.04.3 LTS - Linux 4.9.196-63 aarch64
  Amlogic S922X rev a (4 A73 + 2 A53)

  This issue is repeatable on more than 6 each different machines of the above 
configurations.
  I am using ssh via Putty to log in via terminal screen.
  I am using nano defaults. I have not changed anything nor do I open with any 
arguments. I use nano <filename> and it's not associated with any extension. It 
behaves the same for all files, even no extension files.
  Nano is not changing the file, it's just not displaying correctly. The 
characters are there and they save properly, they're just not visible on the 
terminal screen.

  Using WinSCP presents no issues as I am using my local Windows text
  editor.

  If I use vi to view the file there are no problems.
  If I use cat to view the file there are no problems.
  If I use tail to view the file there are no problems

  I do not experience this issue on:
  Nano 2.5.3
  Ubuntu 16.04.6 LTS - Linux 4.14.5-92 armv7l
  ARMv7 Processor rev 3 (v7l)

  If I take any file that has repeat characters such as:
  ############
  -----------------
                  |||||||

  Nano 2.9.3 will not display all of the continuous repeat characters in
  the row. For example:

  Copy and paste ############ is displayed as:
  #           <-- But end of line is correct
  If I copy that line from the file in nano editor and paste it into another 
non nano editor I get:
  #
  as the paste result

  This is the same for all different repeated characters.
  If I keyboard type ############################## nano will display it until 
nano is closed and then the same file is reopened. Then it's same as above, one 
# but end of line is correct.

  Pasting:
  #       +--------+      +--------+      +--------+      +--------+
  #       |        |      |        |      |        |      |        |
  # >CLK->|        |>CLK->|        |>CLK->|        |>CLK->|        |>CLK->
  # >CS ->|        |>CS ->|        |>CS ->|        |>CS ->|        |>CS ->
  # >DIN->|        |>DIN->|        |>DIN->|        |>DIN->|        |>DIN->
  #       |        |      |        |      |        |      |        |
  #       +--------+      +--------+      +--------+      +--------+

  into nano results in displayed:
  # +-+      +-+      +-+      +-+
  # | |      | |      | |      | |
  # >CLK->| |>CLK->| |>CLK->| |>CLK->| |>CLK->
  # >CS ->| |>CS ->| |>CS ->| |>CS ->| |>CS ->
  # >DIN->| |>DIN->| |>DIN->| |>DIN->| |>DIN->
  # | |      | |      | |      | |
  # +-+      +-+      +-+      +-+
  while nano is still open.
  Close the file and view in cat, vi or tail and it is show properly..

  Pasting:
  #       +--------+      +--------+      +--------+      +--------+
  #       |        |      |        |      |        |      |        |
  # >CLK->|        |>CLK->|        |>CLK->|        |>CLK->|        |>CLK->
  # >CS ->|        |>CS ->|        |>CS ->|        |>CS ->|        |>CS ->
  # >DIN->|        |>DIN->|        |>DIN->|        |>DIN->|        |>DIN->
  #       |        |      |        |      |        |      |        |
  #       +--------+      +--------+      +--------+      +--------+

  using vi editor
  then save file and open file in nano results in:
  # +-+      +-+      +-+      +-+
  # | |      | |      | |      | |
  # >CLK->| |>CLK->| |>CLK->| |>CLK->| |>CLK->
  # >CS ->| |>CS ->| |>CS ->| |>CS ->| |>CS ->
  # >DIN->| |>DIN->| |>DIN->| |>DIN->| |>DIN->
  # | |      | |      | |      | |
  # +-+      +-+      +-+      +-+

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to