Opened 7 years ago
Closed 3 years ago
#7993 closed defect (fixed)
busybox "ls" cannot display utf-8 filenames
| Reported by: | buildster | Owned by: | jow |
|---|---|---|---|
| Priority: | normal | Milestone: | Barrier Breaker 14.07 |
| Component: | base system | Version: | Trunk |
| Keywords: | busybox 1.17.2 ls utf-8 filename | Cc: |
Description
With r23097, which has BusyBox v1.17.2, the "ls" command cannot display utf-8 encoded filenames.
drwxr-xr-x 2 root root 4096 Jul 19 2009 ???????????? drwxr-xr-x 2 root root 4096 Jul 23 2009 ?????????????????? drwxr-xr-x 2 root root 4096 Sep 7 2009 ??????
The interesting thing is that, if "echo *" is invoked, these non-Latin characters show up nicely. Module nls_utf8 is loaded. An attempt to build r23097 with CONFIG_BUSYBOX_CONFIG_UNICODE_SUPPORT=y didn't make any difference. Nothing special was done to BusyBox v1.11.3 to make "ls" display the filenames.
Attachments (3)
Change History (13)
comment:1 Changed 7 years ago by jow
- Owner changed from developers to nico
- Status changed from new to assigned
comment:2 Changed 7 years ago by buildster
comment:3 Changed 7 years ago by buildster
Please find file 7993.diff in Attachments, which adds 700-make_unicode_printable.patch to package busybox to allow utf-8 encoded filenames to be displayed by command "ls".
By default, it's fine that busybox's unicode support is not activated (# CONFIG_BUSYBOX_CONFIG_UNICODE_SUPPORT is not set).
In this case, busybox should not turn all the "unprintable" characters, c >= 0x7f, to '?' because they are likely unicode that can be handled by libc unicode support.
comment:4 Changed 7 years ago by buildster
Oops, ignore the first diff file, which had the new and old reversed.
Have a look at 7993.2.diff.
comment:5 Changed 7 years ago by jow
- Owner changed from nico to jow
- Status changed from assigned to accepted
comment:6 Changed 5 years ago by bodka.zavinac@…
pleas close it / fix it :( this is so basic.. it should make it into the AA final release.. it is not only LS that is affected, also people cannot copy folders etc.. using winscp etc.. it s so depressing! :( :)
merry xmas to all!
comment:7 Changed 4 years ago by twerrt
this patch fixing the encofing issue with r40823
comment:8 Changed 4 years ago by jow
- Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07
Milestone Attitude Adjustment 12.09 deleted
comment:9 Changed 3 years ago by bodka.zavinac@…
hello! may I ask if tickets here are relevant or/and taken into consideration? (I am asking regarding BB moving to github) ..and especially this ticket is very interesting to me, thanks a million!
comment:10 Changed 3 years ago by jow
- Resolution set to fixed
- Status changed from accepted to closed

An update: with r23757 and its busybox v1.17.3, the problem persists. Command "touch" creates a file with utf-8 encoded name, command "echo *" displays it, but command "ls" still shows a bunch of ??????.