Bug 2193 - Scp sometimes breaks non-ASCII filenames in copying progress indicator
Summary: Scp sometimes breaks non-ASCII filenames in copying progress indicator
Status: CLOSED DUPLICATE of bug 2434
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: scp (show other bugs)
Version: 7.3p1
Hardware: Other Linux
: P5 minor
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-30 08:01 AEDT by Tom Adler
Modified: 2018-04-06 12:26 AEST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Adler 2013-12-30 08:01:27 AEDT
When scp sees a filename that is too long to be displayed in progress indicator, the filename is truncated, apparently not as text string but as byte string. In my case truncation sometimes cuts off some of unicode character bytes. For some names and console sizes truncation happens between the characters, but some get cut. It looks like that in the console: 

$ scp абвгдеёжзийклмнопрстуфхцчшщъыьэюя arty.name:
абвгдеёжзийклмнопрсту�   0%    0     0.0KB/s   --:-- ETA^C

Note this "�" character at the end of the filename. 

I'm using ubuntu 13.04, LANG de_DE.UTF-8, openssh-client 6.2p2-6ubuntu0.1 and I haven't found any bugs similar to this one fixed since 6.2
Comment 1 Darren Tucker 2016-07-20 16:43:37 AEST
Ingo Schwarze just did some work on the progressmeter and its support for utf8:

https://anongit.mindrot.org/openssh.git/log/?qt=author&q=schwarze@openbsd.org+&showmsg=1

The work is already in the snapshots http://www.mindrot.org/openssh_snap/ and will be in the 7.3 release.

Does that fix the problem you're reporting?
Comment 2 Tom Adler 2016-11-14 06:03:19 AEDT
No, unfortunately the problem still exists in 7.3p1.
Comment 3 Damien Miller 2017-02-17 13:56:44 AEDT

*** This bug has been marked as a duplicate of bug 2434 ***
Comment 4 Damien Miller 2018-04-06 12:26:54 AEST
Close all resolved bugs after release of OpenSSH 7.7.