Bug 970508

Summary: tree does not correctly display internationalized filenames
Product: [Fedora] Fedora Reporter: David Tonhofer <bughunt>
Component: treeAssignee: Tim Waugh <twaugh>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-04 08:21:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Tonhofer 2013-06-04 08:10:10 UTC
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 08:21:14 UTC
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.)