The Samba-Bugzilla – Bug 3472
smbclient's ls doesn't pad correctly with utf-8 characters
Last modified: 2006-01-31 15:36:45 UTC
In a UTF-8 locale:
smb: \> ls
. D 0 Tue Jan 31 23:32:02 2006
.. DR 0 Thu Apr 15 13:24:39 2004
é 0 Tue Jan 31 23:32:02 2006
Note that size and date is a bit shifted.
Indeed, in UTF-8 encoding, 'é' takes two bytes. But it takes only one displaying character. smbclient should use wcswidth() and others to get the displaying size of unicode strings.