Modify

Opened 6 years ago

Closed 22 months 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)

7993.diff (778 bytes) - added by buildster 6 years ago.
Adds 700-make_unicode_printable.patch to package busybox
7993.2.diff (774 bytes) - added by buildster 6 years ago.
Adds 700-make_unicode_printable.patch to package busybox
701-make_unicode_printable.patch (378 bytes) - added by ylxu72@… 4 years ago.
Corrected patch from 7993.2.diff (tested ok under r35121)

Download all attachments as: .zip

Change History (13)

comment:1 Changed 6 years ago by jow

  • Owner changed from developers to nico
  • Status changed from new to assigned

comment:2 Changed 6 years ago by buildster

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 ??????.

comment:3 Changed 6 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.

Changed 6 years ago by buildster

Adds 700-make_unicode_printable.patch to package busybox

Changed 6 years ago by buildster

Adds 700-make_unicode_printable.patch to package busybox

comment:4 Changed 6 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 6 years ago by jow

  • Owner changed from nico to jow
  • Status changed from assigned to accepted

comment:6 Changed 4 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!

Changed 4 years ago by ylxu72@…

Corrected patch from 7993.2.diff (tested ok under r35121)

comment:7 Changed 2 years ago by twerrt

this patch fixing the encofing issue with r40823

comment:8 Changed 2 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 2 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 22 months ago by jow

  • Resolution set to fixed
  • Status changed from accepted to closed

Fixed with r43084, r43085

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.