Package: coreutils
Version: 8.23-4
Severity: normal
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Dear Maintainer,
This came up due to a posting on debian-user-german [1]. Apparently
certain Unicode characters, at least LEFT-TO-RIGHT EMBEDDING [2] and
RIGHT-TO-LEFT EMBEDDING [3] do not trigger the escape code display for
ls with the -b option.
An example script is attached, output:
$ bash unicode_bidir_test.sh
+ touch LTR
+ touch RTL
+ /bin/ls -l
total 4
-rw-r--r--. 1 peter peter 0 Aug 10 14:00 LTR
-rw-r--r--. 1 peter peter 0 Aug 10 14:00 RTL
-rw-r--r--. 1 peter peter 148 Aug 10 14:00 unicode_bidir_test.sh
+ /bin/ls -lb
total 4
-rw-r--r--. 1 peter peter 0 Aug 10 14:00 LTR
-rw-r--r--. 1 peter peter 0 Aug 10 14:00 RTL
-rw-r--r--. 1 peter peter 148 Aug 10 14:00 unicode_bidir_test.sh
+ /bin/ls -lb LTR
/bin/ls: cannot access LTR: No such file or directory
+ /bin/ls -lb LTR
-rw-r--r--. 1 peter peter 0 Aug 10 14:00 LTR
+ /bin/ls -lb RTL
/bin/ls: cannot access RTL: No such file or directory
+ /bin/ls -lb RTL
-rw-r--r--. 1 peter peter 0 Aug 10 14:00 RTL
The expected output would be that those characters be shown, as they are
relevant when accessing a file on the command line.
[1] https://lists.debian.org/debian-user-german/2016/08/msg00049.html
[2] http://www.fileformat.info/info/unicode/char/202a/index.htm
[3] http://www.fileformat.info/info/unicode/char/202b/index.htm
- -- System Information:
Debian Release: 8.5
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages coreutils depends on:
ii libacl1 2.2.52-2
ii libattr1 1:2.4.47-2
ii libc6 2.19-18+deb8u4
ii libselinux1 2.3-2
coreutils recommends no packages.
coreutils suggests no packages.
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBAgAGBQJXqzhdAAoJEM+6Ng5pbtyZ3IoQAI4DZSA2PnKrm7ZDjRhfXG6J
jj/0knbwC95pBVFzA7MOs2UFyS5YNFzNnEYQQIOrlkPHSCVk8kakKRgqGW4dFSRY
3Nug+94TGv9WjcoMZxgy3BDktbGggzy+wpvq893OlovGdMLSTDe+zKjvZ5acUl95
2qssKyAWAWweqQ1W6/kwU/si7Fzhm1TwB0rv5SxNUwSf42mJWE4Nzzl2m6DJ+LVA
YYClIJUSX0B/1pk4jMXFMJxia/XzoWPUMP9chGbyGoxAxtKm46hh6vcH1GBII9Sf
A38qOfE+svzv8UJoyhVCqAozECbNa7JPCSE9QSJw/cEPqmze0XuPt3C+n2cGNlje
xjP0wSIxzdPO87NVOHUxRQIzBi2xKLF6CWjxyfCuFDhdt8V2IMjpSWV3Wq0BjLYH
9ahIBFkjvBldc1//uBE6fj2bBtD4X94u2uTv2xU0tQCUskYZxFeGkDUqQWndRlsu
rHRDOBn/KE5E6GAnJVy5cMomng+fm1vm+JG2x0S6H4iy9hYFGVe+HOiv2B3Yoyz7
Kr1TDdgtbxSFaXzcUb1vRS9MveTXEntGK+BpL9xXlFOa6MiTG2DDMRryOaHpZw/W
NY9enRaPa7e7bfh+Z9iECW7jYWyILM9Av3dcWSWqUoAynl4UeFPGzIavCdWf+wQr
og7RMYHWVpJ/tWqUldli
=ryNo
-----END PGP SIGNATURE-----
#!/bin/bash
set -x
touch 'LTR'
touch 'RTL'
/bin/ls -l
/bin/ls -lb
/bin/ls -lb LTR
/bin/ls -lb LTR
/bin/ls -lb RTL
/bin/ls -lb RTL