Bug 2193

Summary: Scp sometimes breaks non-ASCII filenames in copying progress indicator
Product: Portable OpenSSH Reporter: Tom Adler <me>
Component: scpAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED DUPLICATE    
Severity: minor CC: djm, dtucker
Priority: P5    
Version: 7.3p1   
Hardware: Other   
OS: Linux   

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.