Bug 970508 - tree does not correctly display internationalized filenames
tree does not correctly display internationalized filenames
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: tree (Show other bugs)
19
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Tim Waugh
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  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:
Environment:
Last Closed: 2013-06-04 04:21:14 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
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
en_US.UTF-8

$ 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):
-------------------------------------------------------------

tree-1.6.0-5.fc18.x86_64

How reproducible:
-----------------

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