Bug 970508 - tree does not correctly display internationalized filenames
tree does not correctly display internationalized filenames
Product: Fedora
Classification: Fedora
Component: tree (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Tim Waugh
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2013-06-04 04:10 EDT by David Tonhofer
Modified: 2013-06-04 04:21 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-06-04 04:21:14 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description David Tonhofer 2013-06-04 04:10:10 EDT
Description of problem:

tree does not correctly display internationalized filesnames (in UTF-8)

$ mkdir TEST; cd TEST

$ echo $LANG

$ touch "Les nouvelles coordonnées.txt"; ls -l

-rw-rw-r--. 1 hobbes hobbes 0 Jun  4 10:04 Les nouvelles coordonnées.txt

$ tree
└── Les\ nouvelles\ coordonn\303\251es.txt

0 directories, 1 file

So the bytes in the filename are output "as is" in octal. This might be good feature to have, but then it should be activated explicitely via an option ;-)
And hex would be more appropriate (octal in 2013? I is more likely than you think)

Version-Release number of selected component (if applicable):


How reproducible:

Comment 1 Tim Waugh 2013-06-04 04:21:14 EDT
You can use the -N option to tell tree to display filenames byte-for-byte rather than escaping characters.

(The escaping format, using octal, allows easy pasting into a shell.)

Note You need to log in before you can comment on or make changes to this bug.